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