Skip to content

Commit

Permalink
sgtpuzzles: create symlinks with sgt-puzzle- prefix for disambiguatio…
Browse files Browse the repository at this point in the history
…n, for example with net being provided by Samba
  • Loading branch information
7c6f434c committed May 20, 2016
1 parent 810a4dd commit 9cb61d3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/games/sgt-puzzles/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9cb61d3

Please sign in to comment.