diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2008-12-15 11:55:53 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2008-12-15 11:55:53 +0000 |
commit | a0657e021ff419265250e92bc973fa4054cd0128 (patch) | |
tree | ce409881f2140deed78640b6ef4c50576d8252b0 /pkgs/games/sgt-puzzles | |
parent | a69221ec2b594ef2e36fa62664e32f9d0c436dbd (diff) |
Added Simon Tatham's puzzle collection
svn path=/nixpkgs/trunk/; revision=13634
Diffstat (limited to 'pkgs/games/sgt-puzzles')
-rw-r--r-- | pkgs/games/sgt-puzzles/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/games/sgt-puzzles/default.nix b/pkgs/games/sgt-puzzles/default.nix new file mode 100644 index 0000000000000..9eaa17e15b37b --- /dev/null +++ b/pkgs/games/sgt-puzzles/default.nix @@ -0,0 +1,34 @@ +a : +let + fetchurl = a.fetchurl; + + version = a.lib.getAttr ["version"] "r8373" 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 = "1mkf36rah61x0pxpmjbpgy8ccv8m38hf088mf2i5cx9paya830dc"; + }; + + 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"; + }; +} |