3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/sgt-puzzles/default.nix
Michael Raskin 3f036ae7ce SGT Puzzles tarball changed back (!).
svn path=/nixpkgs/trunk/; revision=15858
2009-06-05 08:34:30 +00:00

35 lines
844 B
Nix

a :
let
fetchurl = a.fetchurl;
version = a.lib.attrByPath ["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 = "1m6fybbvlx33786hmgraqxgm1hakfj9bqqszzzpi2ka4spfzj3xl";
};
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";
};
}