2008-12-15 11:55:53 +00:00
|
|
|
a :
|
|
|
|
let
|
2010-01-15 11:46:12 +00:00
|
|
|
fetchsvn = a.fetchsvn;
|
2008-12-15 11:55:53 +00:00
|
|
|
|
2010-02-18 10:29:40 +00:00
|
|
|
version = a.lib.attrByPath ["version"] "r8541" a;
|
2008-12-15 11:55:53 +00:00
|
|
|
buildInputs = with a; [
|
2010-02-18 10:29:40 +00:00
|
|
|
gtk pkgconfig libX11 perl
|
2008-12-15 11:55:53 +00:00
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
2010-01-15 11:46:12 +00:00
|
|
|
src = fetchsvn {
|
|
|
|
url = svn://svn.tartarus.org/sgt/puzzles;
|
2012-10-17 21:21:42 +01:00
|
|
|
rev = "9689";
|
|
|
|
sha256 = "33285a971fee67324f8867de22582931135d8b8ee4cc2c41c46c3ba81eb99cb7";
|
2010-01-15 11:46:12 +00:00
|
|
|
} + "/";
|
2008-12-15 11:55:53 +00:00
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
makeFlags = ["prefix=$out" "gamesdir=$out/bin"];
|
|
|
|
|
2012-03-23 07:09:48 +00:00
|
|
|
neededDirs = ["$out/bin" "$out/share"];
|
2008-12-15 11:55:53 +00:00
|
|
|
extraDoc = ["puzzles.txt"];
|
|
|
|
|
2010-01-15 11:46:12 +00:00
|
|
|
mkMakefiles = a.fullDepEntry ''
|
|
|
|
perl mkfiles.pl
|
|
|
|
'' ["minInit" "doUnpack" "addInputs"];
|
|
|
|
|
2010-02-18 13:40:10 +00:00
|
|
|
setVars = a.noDepEntry ''
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lX11"
|
2012-10-17 21:21:42 +01:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-error=variadic-macros"
|
2010-02-18 13:40:10 +00:00
|
|
|
'';
|
|
|
|
|
2008-12-15 11:55:53 +00:00
|
|
|
/* doConfigure should be removed if not needed */
|
2010-02-18 13:40:10 +00:00
|
|
|
phaseNames = ["addInputs" "setVars" "mkMakefiles" "doMakeInstall"];
|
2008-12-15 11:55:53 +00:00
|
|
|
|
|
|
|
name = "sgt-puzzles-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "Simon Tatham's portable puzzle collection";
|
|
|
|
};
|
|
|
|
}
|