aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/games/cockatrice/default.nix
blob: 9d07d09e27b2eff3e9c274981dfca4d411cc3eea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchFromGitHub, mkDerivation, cmake, protobuf
, qtbase, qtmultimedia, qttools, qtwebsockets, wrapQtAppsHook
}:

mkDerivation rec {
  pname = "cockatrice";
  version = "2020-03-20-Release-2.7.4";

  src = fetchFromGitHub {
    owner = "Cockatrice";
    repo = "Cockatrice";
    rev = "${version}";
    sha256 = "1d229gswfcqxch19wb744d9h897qwzf2y9imwrbcwnlhpbr1j62k";
  };

  buildInputs = [
    cmake qtbase qtmultimedia protobuf qttools qtwebsockets
  ];

  nativeBuildInputs = [ wrapQtAppsHook ];

  meta = {
    homepage = "https://github.com/Cockatrice/Cockatrice";
    description = "A cross-platform virtual tabletop for multiplayer card games";
    license = stdenv.lib.licenses.gpl2;
    maintainers = with stdenv.lib.maintainers; [ evanjs ];
    platforms = with stdenv.lib.platforms; linux;
  };
}