sgtpuzzles: create symlinks with sgt-puzzle- prefix for disambiguation, for example with net being provided by Samba

This commit is contained in:
Michael Raskin 2016-05-20 11:21:38 +02:00
parent 810a4dd656
commit 9cb61d3ac1

View file

@ -18,6 +18,15 @@ stdenv.mkDerivation {
cp gamedesc.txt LICENCE README "$out/share/doc/sgtpuzzles"
cp LICENCE "$out/share/doc/sgtpuzzles/LICENSE"
'';
# SGT Puzzles use generic names like net, map, etc.
# Create symlinks with sgt-puzzle- prefix for possibility of
# disambiguation
postInstall = ''
(
cd "$out"/bin ;
for i in *; do ln -s "$i" "sgt-puzzle-$i"; done
)
'';
preConfigure = ''
perl mkfiles.pl
export NIX_LDFLAGS="$NIX_LDFLAGS -lX11"