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
|
|
|
|
2009-05-24 11:57:41 +01:00
|
|
|
version = a.lib.attrByPath ["version"] "r8541" a;
|
2008-12-15 11:55:53 +00:00
|
|
|
buildInputs = with a; [
|
2010-01-15 11:46:12 +00:00
|
|
|
gtk glib 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;
|
|
|
|
rev = "8842";
|
|
|
|
sha256 = "0rx3pxd1ci9x1mlw1jfmwd0fpcyv76vv6jraxfrxcykxx62qg479";
|
|
|
|
} + "/";
|
2008-12-15 11:55:53 +00:00
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
makeFlags = ["prefix=$out" "gamesdir=$out/bin"];
|
|
|
|
|
|
|
|
neededDirs = ["$out/bin" "$out/share" ""];
|
|
|
|
extraDoc = ["puzzles.txt"];
|
|
|
|
|
2010-01-15 11:46:12 +00:00
|
|
|
mkMakefiles = a.fullDepEntry ''
|
|
|
|
perl mkfiles.pl
|
|
|
|
'' ["minInit" "doUnpack" "addInputs"];
|
|
|
|
|
2008-12-15 11:55:53 +00:00
|
|
|
/* doConfigure should be removed if not needed */
|
2010-01-15 11:46:12 +00:00
|
|
|
phaseNames = ["addInputs" "doExport" "mkMakefiles" "doMakeInstall"];
|
2008-12-15 11:55:53 +00:00
|
|
|
|
|
|
|
doExport = a.noDepEntry ''
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -L${a.libX11}/lib -lX11"
|
|
|
|
'';
|
|
|
|
|
|
|
|
name = "sgt-puzzles-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "Simon Tatham's portable puzzle collection";
|
|
|
|
};
|
|
|
|
}
|