summary refs log tree commit diff
path: root/pkgs/games/sgt-puzzles
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2016-05-20 11:21:38 +0200
committerMichael Raskin <7c6f434c@mail.ru>2016-05-20 11:21:52 +0200
commit9cb61d3ac1749aa96320439f60938e78baf31765 (patch)
tree8078f5c7a27b0acd2d90c5f495f94d49abfd6850 /pkgs/games/sgt-puzzles
parent810a4dd656f94dace60790b7f9957b950647b4d8 (diff)
downloadnixpkgs-9cb61d3ac1749aa96320439f60938e78baf31765.tar
nixpkgs-9cb61d3ac1749aa96320439f60938e78baf31765.tar.gz
nixpkgs-9cb61d3ac1749aa96320439f60938e78baf31765.tar.bz2
nixpkgs-9cb61d3ac1749aa96320439f60938e78baf31765.tar.lz
nixpkgs-9cb61d3ac1749aa96320439f60938e78baf31765.tar.xz
nixpkgs-9cb61d3ac1749aa96320439f60938e78baf31765.tar.zst
nixpkgs-9cb61d3ac1749aa96320439f60938e78baf31765.zip
sgtpuzzles: create symlinks with sgt-puzzle- prefix for disambiguation, for example with net being provided by Samba
Diffstat (limited to 'pkgs/games/sgt-puzzles')
-rw-r--r--pkgs/games/sgt-puzzles/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/games/sgt-puzzles/default.nix b/pkgs/games/sgt-puzzles/default.nix
index ce0bc555014..0500a456269 100644
--- a/pkgs/games/sgt-puzzles/default.nix
+++ b/pkgs/games/sgt-puzzles/default.nix
@@ -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"