treewide: fixup bcf54ce

fix the executable bit for scripts installed with substituteAll
and some remaining shebangs.
This commit is contained in:
rnhmjoj 2019-03-06 00:10:34 +01:00
parent d0506bed9f
commit 5ea4160b33
No known key found for this signature in database
GPG key ID: 91BE884FBA4B591A
9 changed files with 16 additions and 7 deletions

View file

@ -24,6 +24,7 @@ stdenv.mkDerivation rec {
bin_path = "$out/bin";
install_freedesktop_items = substituteAll {
inherit (stdenv) shell;
isExecutable = true;
src = ./install_freedesktop_items.sh;
};
runtime_paths = lib.makeBinPath [

View file

@ -1,4 +1,4 @@
#! @shell@
#!@shell@
set -eu

View file

@ -123,6 +123,7 @@ stdenv.mkDerivation rec {
let
gcc-clang-wrapper = substituteAll {
inherit (stdenv) shell;
isExecutable = true;
src = ./gcc-clang-wrapper.sh;
};
in

View file

@ -40,7 +40,11 @@ stdenv.mkDerivation {
installPhase =
if stdenv.isDarwin then
(substituteAll { inherit (stdenv) shell; src = ./darwin.sh; })
(substituteAll {
inherit (stdenv) shell;
isExecutable = true;
src = ./darwin.sh;
})
else jamenv + ''
jam -j$NIX_BUILD_CORES install
mkdir -p "$out/bin"

View file

@ -27,9 +27,10 @@
let
rfkillHook =
substituteAll {
inherit (stdenv) shell;
src = ./rfkill-hook.sh;
};
inherit (stdenv) shell;
isExecutable = true;
src = ./rfkill-hook.sh;
};
in stdenv.mkDerivation {
name = "rfkill-udev";
@ -44,7 +45,6 @@ in stdenv.mkDerivation {
mkdir -p "$out/bin/";
cp ${rfkillHook} "$out/bin/rfkill-hook.sh"
chmod +x "$out/bin/rfkill-hook.sh";
'';
meta = {

View file

@ -7,6 +7,7 @@ in
runCommand "${name}" {
script = substituteAll {
src = ./service-wrapper.sh;
isExecutable = true;
inherit (stdenv) shell;
inherit coreutils;
};

View file

@ -9,6 +9,7 @@ stdenv.mkDerivation rec {
script = substituteAll {
src = ./rpmextract.sh;
isExecutable = true;
inherit rpm cpio;
inherit (stdenv) shell;
};

View file

@ -37,6 +37,7 @@ stdenv.mkDerivation rec {
let
eid-nssdb-in = substituteAll {
inherit (stdenv) shell;
isExecutable = true;
src = ./eid-nssdb.in;
};
in

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!@shell@
rootdb="/etc/pki/nssdb"
userdb="$HOME/.pki/nssdb"