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"