Shellcheck the existing installer

This commit is contained in:
Graham Christensen 2017-07-09 12:38:32 -04:00
parent 112ff7833d
commit a0ad8ba12e
No known key found for this signature in database
GPG key ID: 06121D366FE9435C

View file

@ -137,7 +137,7 @@ let
runCommand "nix-binary-tarball-${version}" runCommand "nix-binary-tarball-${version}"
{ exportReferencesGraph = [ "closure1" toplevel "closure2" cacert ]; { exportReferencesGraph = [ "closure1" toplevel "closure2" cacert ];
buildInputs = [ perl ]; buildInputs = [ perl shellcheck ];
meta.description = "Distribution-independent Nix bootstrap binaries for ${system}"; meta.description = "Distribution-independent Nix bootstrap binaries for ${system}";
} }
'' ''
@ -146,6 +146,9 @@ let
substitute ${./scripts/install-nix-from-closure.sh} $TMPDIR/install \ substitute ${./scripts/install-nix-from-closure.sh} $TMPDIR/install \
--subst-var-by nix ${toplevel} \ --subst-var-by nix ${toplevel} \
--subst-var-by cacert ${cacert} --subst-var-by cacert ${cacert}
shellcheck -e SC1090 $TMPDIR/install
chmod +x $TMPDIR/install chmod +x $TMPDIR/install
dir=nix-${version}-${system} dir=nix-${version}-${system}
fn=$out/$dir.tar.bz2 fn=$out/$dir.tar.bz2