2015-07-05 08:57:38 +00:00
|
|
|
{stdenv, gtk, pkgconfig, libX11, perl, fetchsvn}:
|
|
|
|
let
|
|
|
|
version = "10286";
|
|
|
|
buildInputs = [
|
2010-02-18 10:29:40 +00:00
|
|
|
gtk pkgconfig libX11 perl
|
2008-12-15 11:55:53 +00:00
|
|
|
];
|
|
|
|
in
|
2015-07-05 08:57:38 +00:00
|
|
|
stdenv.mkDerivation {
|
2010-01-15 11:46:12 +00:00
|
|
|
src = fetchsvn {
|
|
|
|
url = svn://svn.tartarus.org/sgt/puzzles;
|
2015-07-05 08:57:38 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1mp1s33hjikby7jy6bcjwyzkdwlw1bw9dcc4cg5d80wmzkb0sqv0";
|
|
|
|
};
|
|
|
|
name = "sgt-puzzles-r" + version;
|
2008-12-15 11:55:53 +00:00
|
|
|
inherit buildInputs;
|
2015-07-05 08:57:38 +00:00
|
|
|
makeFlags = ["prefix=$(out)" "gamesdir=$(out)/bin"];
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p "$out"/{bin,share/doc/sgtpuzzles}
|
2015-07-12 21:55:24 +00:00
|
|
|
cp gamedesc.txt LICENCE README "$out/share/doc/sgtpuzzles"
|
2015-07-05 08:57:38 +00:00
|
|
|
cp LICENCE "$out/share/doc/sgtpuzzles/LICENSE"
|
|
|
|
'';
|
|
|
|
preConfigure = ''
|
2010-01-15 11:46:12 +00:00
|
|
|
perl mkfiles.pl
|
2010-02-18 13:40:10 +00:00
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lX11"
|
2013-03-21 13:35:18 +00:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-error"
|
2015-07-05 08:57:38 +00:00
|
|
|
cp Makefile.gtk Makefile
|
2010-02-18 13:40:10 +00:00
|
|
|
'';
|
2008-12-15 11:55:53 +00:00
|
|
|
meta = {
|
2015-07-05 08:57:38 +00:00
|
|
|
inherit version;
|
2008-12-15 11:55:53 +00:00
|
|
|
description = "Simon Tatham's portable puzzle collection";
|
2015-07-05 08:57:38 +00:00
|
|
|
license = stdenv.lib.licenses.mit ;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-12-15 11:55:53 +00:00
|
|
|
};
|
|
|
|
}
|