forked from mirrors/nixpkgs
sgtpuzzles: create symlinks with sgt-puzzle- prefix for disambiguation, for example with net being provided by Samba
This commit is contained in:
parent
810a4dd656
commit
9cb61d3ac1
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue