git.iko.soy/typeable/nixpkgs
on master help sign in
sgtpuzzles: create symlinks with sgt-puzzle- prefix for disambiguation, for example with net being provided by Samba
commit9cb61d3ac1749aa96320439f60938e78baf31765 authorMichael Raskin <7c6f434c@mail.ru> dateFri 20 May 2016, 11:21 (11 years ago) parent810a4dd
1 file changed+9
pkgs/games/sgt-puzzles/default.nix+9
pkgs/games/sgt-puzzles/default.nix+9
@@ -18,6 +18,15 @@ stdenv.mkDerivation {
1818 cp gamedesc.txt LICENCE README "$out/share/doc/sgtpuzzles"
1919 cp LICENCE "$out/share/doc/sgtpuzzles/LICENSE"
2020 '';
21+ # SGT Puzzles use generic names like net, map, etc.
22+ # Create symlinks with sgt-puzzle- prefix for possibility of
23+ # disambiguation
24+ postInstall = ''
25+ (
26+ cd "$out"/bin ;
27+ for i in *; do ln -s "$i" "sgt-puzzle-$i"; done
28+ )
29+ '';
2130 preConfigure = ''
2231 perl mkfiles.pl
2332 export NIX_LDFLAGS="$NIX_LDFLAGS -lX11"