2008-12-15 12:55:53 +01:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
fetchurl = a.fetchurl;
|
|
|
|
|
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; [
|
|
|
|
gtk glib pkgconfig libX11
|
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${version}.tar.gz";
|
2009-05-10 21:38:26 +02:00
|
|
|
sha256 = "1k42b7dp53mknn4hcra5kln23y0wscbmki0gl5gnnl1qk5a9ls58";
|
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"];
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["addInputs" "doExport" "doMakeInstall"];
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|