Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / games / xskat / default.nix
blob6baf397ad678d985f68e655572e668dbeddeb1db
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   preInstall = ''
16     sed -i Makefile \
17       -e "s|.* BINDIR .*|   BINDIR = $out/bin|" \
18       -e "s|.* MANPATH .*|  MANPATH = $out/man|"
19   '';
21   installTargets = [ "install" "install.man" ];
23   meta = with lib; {
24     description = "Famous german card game";
25     platforms = platforms.unix;
26     license = licenses.free;
27     longDescription = "Play the german card game Skat against the AI or over IRC.";
28     homepage = "https://web.archive.org/web/20221003060115/https://www.xskat.de/xskat.html";
29   };