Merge pull request #62068 from mmahut/62056

ddclient: patch unpure /usr/bin/perl
This commit is contained in:
Aaron Andersen 2019-05-26 12:48:49 -04:00 committed by GitHub
commit a7adfc6abe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, perlPackages, iproute }:
{ stdenv, fetchurl, perlPackages, iproute, perl }:
perlPackages.buildPerlPackage rec {
name = "ddclient-${version}";
@ -20,7 +20,9 @@ perlPackages.buildPerlPackage rec {
substituteInPlace ddclient \
--replace 'in the output of ifconfig' 'in the output of ip addr show' \
--replace 'ifconfig -a' '${iproute}/sbin/ip addr show' \
--replace 'ifconfig $arg' '${iproute}/sbin/ip addr show $arg'
--replace 'ifconfig $arg' '${iproute}/sbin/ip addr show $arg' \
# Until we get the patchShebangs fixed (issue #55786) we need to patch this manually
--replace '/usr/bin/perl' '${perl}/bin/perl'
'';
installPhase = ''