dhcpcd: Fix cross-compilation.

This should almost certainly go into patchShebangs...
This commit is contained in:
Shea Levy 2018-03-01 14:52:04 -05:00
parent fec543436d
commit c3bba10ae8
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27

View file

@ -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;