From c116de941106a0f546b3a1659033e4044f40a2d2 Mon Sep 17 00:00:00 2001 From: Travis Athougies Date: Thu, 22 Nov 2018 19:57:01 -0800 Subject: [PATCH] Use runtimeShell for dhcpcd --- pkgs/tools/networking/dhcpcd/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/dhcpcd/default.nix b/pkgs/tools/networking/dhcpcd/default.nix index fa025a2ec89..b9aa7156e86 100644 --- a/pkgs/tools/networking/dhcpcd/default.nix +++ b/pkgs/tools/networking/dhcpcd/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, udev, runtimeShellPackage }: +{ stdenv, fetchurl, pkgconfig, udev, runtimeShellPackage, runtimeShell }: stdenv.mkDerivation rec { # 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 ]; + prePatch = '' + substituteInPlace hooks/dhcpcd-run-hooks.in --replace /bin/sh ${runtimeShell} + ''; + preConfigure = "patchShebangs ./configure"; configureFlags = [