diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2016-05-20 11:21:38 +0200 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2016-05-20 11:21:52 +0200 |
commit | 9cb61d3ac1749aa96320439f60938e78baf31765 (patch) | |
tree | 8078f5c7a27b0acd2d90c5f495f94d49abfd6850 /pkgs/games/sgt-puzzles | |
parent | 810a4dd656f94dace60790b7f9957b950647b4d8 (diff) | |
download | nixpkgs-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.nix | 9 |
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" |