dhcpcd: Fix cross-compilation.
This should almost certainly go into patchShebangs...
This commit is contained in:
parent
fec543436d
commit
c3bba10ae8
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, pkgconfig, udev }:
|
{ stdenv, fetchurl, pkgconfig, udev, runtimeShellPackage }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "dhcpcd-7.0.1";
|
name = "dhcpcd-7.0.1";
|
||||||
|
@ -25,6 +25,10 @@ stdenv.mkDerivation rec {
|
||||||
# Check that the udev plugin got built.
|
# Check that the udev plugin got built.
|
||||||
postInstall = stdenv.lib.optional (udev != null) "[ -e $out/lib/dhcpcd/dev/udev.so ]";
|
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 = {
|
meta = {
|
||||||
description = "A client for the Dynamic Host Configuration Protocol (DHCP)";
|
description = "A client for the Dynamic Host Configuration Protocol (DHCP)";
|
||||||
homepage = https://roy.marples.name/projects/dhcpcd;
|
homepage = https://roy.marples.name/projects/dhcpcd;
|
||||||
|
|
Loading…
Reference in a new issue