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