From bcf54ce5bbc8c325cfd2b6bcc5cec7661ef49183 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 15 Jan 2019 23:41:31 +0100 Subject: treewide: use ${stdenv.shell} instead of /bin/sh where possible --- pkgs/games/freeorion/default.nix | 1 + pkgs/games/freeorion/fix-paths.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgs/games/freeorion') 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 -- cgit 1.4.1