2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchurl, libX11, imake, gccmakedep}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xskat";
|
|
|
|
version = "4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ gccmakedep ];
|
|
|
|
buildInputs = [ libX11 imake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 22:18:51 +00:00
|
|
|
url = "http://www.xskat.de/xskat-${version }.tar.gz";
|
|
|
|
sha256 = "8ba52797ccbd131dce69b96288f525b0d55dee5de4008733f7a5a51deb831c10";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preInstall = ''
|
|
|
|
sed -i Makefile \
|
|
|
|
-e "s|.* BINDIR .*| BINDIR = $out/bin|" \
|
|
|
|
-e "s|.* MANPATH .*| MANPATH = $out/man|"
|
|
|
|
'';
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installTargets = [ "install" "install.man" ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = ''Famous german card game'';
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.free;
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''Play the german card game Skat against the AI or over IRC.'';
|
|
|
|
homepage = "http://www.xskat.de/";
|
|
|
|
};
|
|
|
|
}
|