2021-01-15 04:31:39 +00:00
|
|
|
{lib, stdenv, fetchurl, libX11, imake, gccmakedep}:
|
2014-08-23 15:09:11 +00:00
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xskat";
|
|
|
|
version = "4.0";
|
2014-08-23 15:09:11 +00:00
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ gccmakedep ];
|
|
|
|
buildInputs = [ libX11 imake ];
|
2014-08-23 15:09:11 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-30 20:41:44 +00:00
|
|
|
url = "https://web.archive.org/web/20220331112433if_/https://www.xskat.de/xskat-${version}.tar.gz";
|
2020-12-31 07:48:55 +00:00
|
|
|
sha256 = "8ba52797ccbd131dce69b96288f525b0d55dee5de4008733f7a5a51deb831c10";
|
2014-08-23 15:09:11 +00:00
|
|
|
};
|
2020-12-31 07:48:55 +00:00
|
|
|
|
2024-05-10 09:40:10 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-implicit-int";
|
|
|
|
|
2014-08-23 15:09:11 +00:00
|
|
|
preInstall = ''
|
|
|
|
sed -i Makefile \
|
|
|
|
-e "s|.* BINDIR .*| BINDIR = $out/bin|" \
|
|
|
|
-e "s|.* MANPATH .*| MANPATH = $out/man|"
|
|
|
|
'';
|
2020-12-31 07:48:55 +00:00
|
|
|
|
2019-11-04 12:33:53 +00:00
|
|
|
installTargets = [ "install" "install.man" ];
|
2020-12-31 07:48:55 +00:00
|
|
|
|
2021-01-15 04:31:39 +00:00
|
|
|
meta = with lib; {
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "Famous german card game";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "xskat";
|
2020-12-31 07:48:55 +00:00
|
|
|
platforms = platforms.unix;
|
2023-12-23 09:33:32 +00:00
|
|
|
license = licenses.xskat;
|
2021-01-24 09:19:10 +00:00
|
|
|
longDescription = "Play the german card game Skat against the AI or over IRC.";
|
2023-10-30 20:41:44 +00:00
|
|
|
homepage = "https://web.archive.org/web/20221003060115/https://www.xskat.de/xskat.html";
|
2014-08-23 15:09:11 +00:00
|
|
|
};
|
|
|
|
}
|