blob: fdc5e145c4db5b5eaaa9b320f095f999bbb8bfc2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{buildPerlPackage, fetchurl, perlPackages, iproute}:
buildPerlPackage {
name = "ddclient-3.8.2";
src = fetchurl {
url = mirror://sourceforge/ddclient/ddclient-3.8.2.tar.gz ;
sha256 = "17mcdqxcwa6c05m8xhxi4r37j4qvbp3wgbpvzqgmrmgwava5wcrw";
};
buildInputs = [ perlPackages.IOSocketSSL perlPackages.DigestSHA1 ];
patches = [ ./ddclient-foreground.patch ];
# Use iproute2 instead of ifconfig
preConfigure = ''
touch Makefile.PL
substituteInPlace ddclient --replace 'in the output of ifconfig' 'in the output of ip addr show'
substituteInPlace ddclient --replace 'ifconfig -a' '${iproute}/sbin/ip addr show'
substituteInPlace ddclient --replace 'ifconfig $arg' '${iproute}/sbin/ip addr show $arg'
'';
installPhase = ''
mkdir -p $out/bin
cp ddclient $out/bin
'';
doCheck = false;
}
|