0d0541458e
svn path=/nixpkgs/trunk/; revision=15533
35 lines
841 B
Nix
35 lines
841 B
Nix
a :
|
|
let
|
|
fetchurl = a.fetchurl;
|
|
|
|
version = a.lib.getAttr ["version"] "r8541" a;
|
|
buildInputs = with a; [
|
|
gtk glib pkgconfig libX11
|
|
];
|
|
in
|
|
rec {
|
|
src = fetchurl {
|
|
url = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${version}.tar.gz";
|
|
sha256 = "1k42b7dp53mknn4hcra5kln23y0wscbmki0gl5gnnl1qk5a9ls58";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|