diff --git a/pkgs/by-name/de/dealers-choice/package.nix b/pkgs/by-name/de/dealers-choice/package.nix new file mode 100644 index 0000000000000..f27874da17a88 --- /dev/null +++ b/pkgs/by-name/de/dealers-choice/package.nix @@ -0,0 +1,61 @@ +{ + lib, + stdenv, + fetchurl, + testers, + meson, + ninja, + pkg-config, + gettext, + canfigger, + SDL2, + SDL2_ttf, + SDL2_image, + SDL2_net, + protobufc, + libsodium, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "dealers-choice"; + version = "0.0.12"; + + src = fetchurl { + url = "https://github.com/Dealer-s-Choice/${finalAttrs.pname}/releases/download/v${finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.xz"; + hash = "sha256-6fD+5H+TFa5Ko0hkxYB9ytjuZQc9hjJmA9PZg/56KH0="; + }; + + strictDeps = true; + __structuredAttrs = true; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; + + buildInputs = [ + canfigger + SDL2 + SDL2_ttf + SDL2_image + SDL2_net + protobufc + libsodium + ] + ++ lib.optional stdenv.hostPlatform.isDarwin gettext; + + passthru.tests.version = testers.testVersion { + package = finalAttrs.finalPackage; + }; + + meta = { + description = "Online Multiplayer Stud and Draw Poker, Texas Hold'em and Omaha"; + homepage = "https://dealer-s-choice.github.io/"; + changelog = "https://github.com/Dealer-s-Choice/${finalAttrs.pname}/blob/v${finalAttrs.version}/ChangeLog"; + license = lib.licenses.mit; + maintainers = [ ]; + platforms = lib.platforms.all; + mainProgram = finalAttrs.pname; + }; +})