summary refs log tree commit diff
path: root/pkgs/games/freeorion
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2019-01-15 23:41:31 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2019-01-16 20:37:15 +0100
commitbcf54ce5bbc8c325cfd2b6bcc5cec7661ef49183 (patch)
tree26aef5b71509a26f7986e6cf9928b7687c21787d /pkgs/games/freeorion
parent3956a8421f2d78bc66ad9d3c23a3b5510bc695be (diff)
downloadnixpkgs-bcf54ce5bbc8c325cfd2b6bcc5cec7661ef49183.tar
nixpkgs-bcf54ce5bbc8c325cfd2b6bcc5cec7661ef49183.tar.gz
nixpkgs-bcf54ce5bbc8c325cfd2b6bcc5cec7661ef49183.tar.bz2
nixpkgs-bcf54ce5bbc8c325cfd2b6bcc5cec7661ef49183.tar.lz
nixpkgs-bcf54ce5bbc8c325cfd2b6bcc5cec7661ef49183.tar.xz
nixpkgs-bcf54ce5bbc8c325cfd2b6bcc5cec7661ef49183.tar.zst
nixpkgs-bcf54ce5bbc8c325cfd2b6bcc5cec7661ef49183.zip
treewide: use ${stdenv.shell} instead of /bin/sh where possible
Diffstat (limited to 'pkgs/games/freeorion')
-rw-r--r--pkgs/games/freeorion/default.nix1
-rw-r--r--pkgs/games/freeorion/fix-paths.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/games/freeorion/default.nix b/pkgs/games/freeorion/default.nix
index a9ebd994bb8..5895e87e731 100644
--- a/pkgs/games/freeorion/default.nix
+++ b/pkgs/games/freeorion/default.nix
@@ -33,6 +33,7 @@ stdenv.mkDerivation rec {
       --subst-var-by out "$out/"
     substitute ${./fix-paths.sh} $out/fixpaths/fix-paths \
       --subst-var-by libxsltBin ${libxslt.bin} \
+      --subst-var-by shell ${stdenv.shell} \
       --subst-var out
     chmod +x $out/fixpaths/fix-paths
 
diff --git a/pkgs/games/freeorion/fix-paths.sh b/pkgs/games/freeorion/fix-paths.sh
index 73a3bd6feda..3f82533dd60 100644
--- a/pkgs/games/freeorion/fix-paths.sh
+++ b/pkgs/games/freeorion/fix-paths.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!@shell@
 
 if [ -e ~/.config/freeorion/config.xml ]; then
   @libxsltBin@/bin/xsltproc -o ~/.config/freeorion/config.xml @out@/fixpaths/fix-paths.xslt ~/.config/freeorion/config.xml