about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/cockatrice/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/games/cockatrice/default.nix')
-rw-r--r--nixpkgs/pkgs/games/cockatrice/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/cockatrice/default.nix b/nixpkgs/pkgs/games/cockatrice/default.nix
new file mode 100644
index 000000000000..0d8b925faa2b
--- /dev/null
+++ b/nixpkgs/pkgs/games/cockatrice/default.nix
@@ -0,0 +1,29 @@
+{ lib, fetchFromGitHub, mkDerivation, cmake, protobuf
+, qtbase, qtmultimedia, qttools, qtwebsockets, wrapQtAppsHook
+}:
+
+mkDerivation rec {
+  pname = "cockatrice";
+  version = "2023-09-14-Release-2.9.0";
+
+  src = fetchFromGitHub {
+    owner = "Cockatrice";
+    repo = "Cockatrice";
+    rev = version;
+    sha256 = "sha256-mzYh0qRKiHY64LnoOfF4kDEO06IW1SrCqEiOlu81Fso=";
+  };
+
+  buildInputs = [
+     qtbase qtmultimedia protobuf qttools qtwebsockets
+  ];
+
+  nativeBuildInputs = [ cmake wrapQtAppsHook ];
+
+  meta = {
+    homepage = "https://github.com/Cockatrice/Cockatrice";
+    description = "A cross-platform virtual tabletop for multiplayer card games";
+    license = lib.licenses.gpl2Plus;
+    maintainers = with lib.maintainers; [ evanjs ];
+    platforms = with lib.platforms; linux;
+  };
+}