From c3bba10ae8ba743489eb5e1a07a88e294a0bece8 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Thu, 1 Mar 2018 14:52:04 -0500 Subject: [PATCH] dhcpcd: Fix cross-compilation. This should almost certainly go into patchShebangs... --- 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 5b7befb3bf6..a151f1d61e1 100644 --- a/pkgs/tools/networking/dhcpcd/default.nix +++ b/pkgs/tools/networking/dhcpcd/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, udev }: +{ stdenv, fetchurl, pkgconfig, udev, runtimeShellPackage }: stdenv.mkDerivation rec { name = "dhcpcd-7.0.1"; @@ -25,6 +25,10 @@ stdenv.mkDerivation rec { # Check that the udev plugin got built. postInstall = stdenv.lib.optional (udev != null) "[ -e $out/lib/dhcpcd/dev/udev.so ]"; + postFixup = '' + find $out -type f -print0 | xargs --null sed -i 's|${stdenv.shellPackage}|${runtimeShellPackage}|' + ''; + meta = { description = "A client for the Dynamic Host Configuration Protocol (DHCP)"; homepage = https://roy.marples.name/projects/dhcpcd;