dhcpcd: Fix cross-compilation.
This should almost certainly go into patchShebangs...
This commit is contained in:
parent
fec543436d
commit
c3bba10ae8
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue