Use runtimeShell for dhcpcd
This commit is contained in:
parent
bcf736b325
commit
c116de9411
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, udev, runtimeShellPackage }:
|
{ stdenv, fetchurl, pkgconfig, udev, runtimeShellPackage, runtimeShell }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
# when updating this to >=7, check, see previous reverts:
|
# when updating this to >=7, check, see previous reverts:
|
||||||
@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
|
|||||||
runtimeShellPackage # So patchShebangs finds a bash suitable for the installed scripts
|
runtimeShellPackage # So patchShebangs finds a bash suitable for the installed scripts
|
||||||
];
|
];
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace hooks/dhcpcd-run-hooks.in --replace /bin/sh ${runtimeShell}
|
||||||
|
'';
|
||||||
|
|
||||||
preConfigure = "patchShebangs ./configure";
|
preConfigure = "patchShebangs ./configure";
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user