depot/third_party/nixpkgs/pkgs/games/xskat/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

38 lines
1 KiB
Nix

{stdenv, fetchurl, libX11, imake, gccmakedep}:
let
s = # Generated upstream information
rec {
baseName="xskat";
version="4.0";
name="${baseName}-${version}";
url="http://www.xskat.de/xskat-4.0.tar.gz";
hash="8ba52797ccbd131dce69b96288f525b0d55dee5de4008733f7a5a51deb831c10";
sha256="8ba52797ccbd131dce69b96288f525b0d55dee5de4008733f7a5a51deb831c10";
};
buildInputs = [ libX11 imake gccmakedep ];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
preInstall = ''
sed -i Makefile \
-e "s|.* BINDIR .*| BINDIR = $out/bin|" \
-e "s|.* MANPATH .*| MANPATH = $out/man|"
'';
installTargets = [ "install" "install.man" ];
meta = {
inherit (s) version;
description = ''Famous german card game'';
platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.free;
longDescription = ''Play the german card game Skat against the AI or over IRC.'';
homepage = "http://www.xskat.de/";
};
}