diff --git a/pkgs/games/teeworlds/default.nix b/pkgs/games/teeworlds/default.nix index a458976e3e4..4aed1345e2c 100644 --- a/pkgs/games/teeworlds/default.nix +++ b/pkgs/games/teeworlds/default.nix @@ -31,18 +31,35 @@ stdenv.mkDerivation rec { ''; installPhase = '' + # Copy the graphics, sounds, etc. ensureDir "$out/share/${name}" - cp -rv data "$out/share/${name}" + cp -rv data other/icons "$out/share/${name}" + # Copy the executables (client, server, etc.). ensureDir "$out/bin" - cp -v teeworlds "$out/bin/.wrapped-teeworlds" + executables="" + for file in * + do + if [ -f "$file" ] && [ -x "$file" ] + then + executables="$file $executables" + fi + done + cp -v $executables "$out/bin" - cat > "$out/bin/teeworlds" < "$out/bin/$program" <