sdrangel: fix build on x86_64-darwin
[NixPkgs.git] / pkgs / games / xskat / default.nix
blob993070c89c96ccc7649a67811147da323663e173
1 {lib, stdenv, fetchurl, libX11, imake, gccmakedep}:
3 stdenv.mkDerivation rec {
4   pname = "xskat";
5   version = "4.0";
7   nativeBuildInputs = [ gccmakedep ];
8   buildInputs = [ libX11 imake ];
10   src = fetchurl {
11     url = "https://web.archive.org/web/20220331112433if_/https://www.xskat.de/xskat-${version}.tar.gz";
12     sha256 = "8ba52797ccbd131dce69b96288f525b0d55dee5de4008733f7a5a51deb831c10";
13   };
15   env.NIX_CFLAGS_COMPILE = "-Wno-implicit-int";
17   preInstall = ''
18     sed -i Makefile \
19       -e "s|.* BINDIR .*|   BINDIR = $out/bin|" \
20       -e "s|.* MANPATH .*|  MANPATH = $out/man|"
21   '';
23   installTargets = [ "install" "install.man" ];
25   meta = with lib; {
26     description = "Famous german card game";
27     mainProgram = "xskat";
28     platforms = platforms.unix;
29     license = licenses.xskat;
30     longDescription = "Play the german card game Skat against the AI or over IRC.";
31     homepage = "https://web.archive.org/web/20221003060115/https://www.xskat.de/xskat.html";
32   };