Skip to content

Commit

Permalink
/bin/sh -> ${stdenv.shell}
Browse files Browse the repository at this point in the history
  • Loading branch information
rht authored and 7c6f434c committed Apr 30, 2017
1 parent 83129a6 commit 5628ceb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkgs/build-support/docker/default.nix
Expand Up @@ -82,7 +82,7 @@ rec {
export PATH=${shadow}/bin:$PATH
mkdir -p /etc/pam.d
if [[ ! -f /etc/passwd ]]; then
echo "root:x:0:0::/root:/bin/sh" > /etc/passwd
echo "root:x:0:0::/root:${stdenv.shell}" > /etc/passwd
echo "root:!x:::::::" > /etc/shadow
fi
if [[ ! -f /etc/group ]]; then
Expand Down
2 changes: 1 addition & 1 deletion pkgs/build-support/release/ant-build.nix
Expand Up @@ -69,7 +69,7 @@ stdenv.mkDerivation (
mkdir -p $out/bin
cat >> $out/bin/${w.name} <<EOF
#! /bin/sh
#!${stdenv.shell}
export JAVA_HOME=$jre
$jre/bin/java ${cp w} ${if w ? mainClass then w.mainClass else "-jar ${w.jar}"} \$@
EOF
Expand Down
1 change: 1 addition & 0 deletions pkgs/build-support/vm/windows/default.nix
@@ -1,3 +1,4 @@
#note: the hardcoded /bin/sh is required for the VM's cygwin shell
pkgs:

let
Expand Down
2 changes: 1 addition & 1 deletion pkgs/servers/nosql/eventstore/default.nix
Expand Up @@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/{bin,lib/eventstore/clusternode}
cp -r bin/clusternode/* $out/lib/eventstore/clusternode/
cat > $out/bin/clusternode << EOF
#!/bin/sh
#!${stdenv.shell}
exec ${mono}/bin/mono $out/lib/eventstore/clusternode/EventStore.ClusterNode.exe "\$@"
EOF
chmod +x $out/bin/clusternode
Expand Down
2 changes: 1 addition & 1 deletion pkgs/servers/xmpp/pyIRCt/default.nix
Expand Up @@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
sed -e '/configFiles/iimport os' -i config.py
cp * $out/share/${name}
cat > $out/bin/pyIRCt <<EOF
#! /bin/sh
#!${stdenv.shell}
cd $out/share/${name}
./irc.py \"$@\"
EOF
Expand Down
2 changes: 1 addition & 1 deletion pkgs/servers/xmpp/pyMAILt/default.nix
Expand Up @@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
sed -e '/configFiles/iimport os' -i config.py
cp * $out/share/$name
cat > $out/bin/pyMAILt <<EOF
#! /bin/sh
#!${stdenv.shell}
cd $out/share/${name}
./mail.py \"$@\"
EOF
Expand Down

0 comments on commit 5628ceb

Please sign in to comment.