From 9cb61d3ac1749aa96320439f60938e78baf31765 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 20 May 2016 11:21:38 +0200 Subject: sgtpuzzles: create symlinks with sgt-puzzle- prefix for disambiguation, for example with net being provided by Samba --- pkgs/games/sgt-puzzles/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pkgs/games') 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" -- cgit 1.4.1