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