mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 01:17:28 +03:00
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 {
|
||||
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 New Issue
Block a user