Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sgtpuzzles: update to revision 10286; rewrite completely to avoid rel…
…iance on builderDefs features
- Loading branch information
Showing
2 changed files
with
22 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,35 @@ | ||
a : | ||
let | ||
fetchsvn = a.fetchsvn; | ||
|
||
version = a.lib.attrByPath ["version"] "r8541" a; | ||
buildInputs = with a; [ | ||
{stdenv, gtk, pkgconfig, libX11, perl, fetchsvn}: | ||
let | ||
version = "10286"; | ||
buildInputs = [ | ||
gtk pkgconfig libX11 perl | ||
]; | ||
in | ||
rec { | ||
stdenv.mkDerivation { | ||
src = fetchsvn { | ||
url = svn://svn.tartarus.org/sgt/puzzles; | ||
rev = "9773"; | ||
sha256 = "1m0mmxbcj0zi44dlmhk4h30d9hdy8g9f59r7k7906pgnnyf49611"; | ||
} + "/"; | ||
|
||
rev = version; | ||
sha256 = "1mp1s33hjikby7jy6bcjwyzkdwlw1bw9dcc4cg5d80wmzkb0sqv0"; | ||
}; | ||
name = "sgt-puzzles-r" + version; | ||
inherit buildInputs; | ||
configureFlags = []; | ||
makeFlags = ["prefix=$out" "gamesdir=$out/bin"]; | ||
|
||
neededDirs = ["$out/bin" "$out/share"]; | ||
extraDoc = ["puzzles.txt"]; | ||
|
||
mkMakefiles = a.fullDepEntry '' | ||
makeFlags = ["prefix=$(out)" "gamesdir=$(out)/bin"]; | ||
preInstall = '' | ||
mkdir -p "$out"/{bin,share/doc/sgtpuzzles} | ||
cp puzzles.txt LICENCE README "$out/share/doc/sgtpuzzles" | ||
cp LICENCE "$out/share/doc/sgtpuzzles/LICENSE" | ||
''; | ||
preConfigure = '' | ||
perl mkfiles.pl | ||
'' ["minInit" "doUnpack" "addInputs"]; | ||
|
||
setVars = a.noDepEntry '' | ||
export NIX_LDFLAGS="$NIX_LDFLAGS -lX11" | ||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-error" | ||
cp Makefile.gtk Makefile | ||
''; | ||
|
||
/* doConfigure should be removed if not needed */ | ||
phaseNames = ["addInputs" "setVars" "mkMakefiles" "doMakeInstall"]; | ||
|
||
name = "sgt-puzzles-" + version; | ||
meta = { | ||
inherit version; | ||
description = "Simon Tatham's portable puzzle collection"; | ||
license = stdenv.lib.licenses.mit ; | ||
maintainers = [stdenv.lib.maintainers.raskin]; | ||
platforms = stdenv.lib.platforms.linux; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters