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;
|
2013-03-21 13:35:18 +00:00
|
|
|
rev = "9773";
|
|
|
|
sha256 = "1m0mmxbcj0zi44dlmhk4h30d9hdy8g9f59r7k7906pgnnyf49611";
|
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"
|
2013-03-21 13:35:18 +00:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-error"
|
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";
|
|
|
|
};
|
|
|
|
}
|