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