Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions pkgs/by-name/de/dealers-choice/package.nix
Original file line number Diff line number Diff line change
@@ -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;
};
})
Loading