@@ -11,31 +11,31 @@ buildPerlPackage rec {
1111
1212 outputs = [ "out" ];
1313
14− buildInputs = [ perlPackages.IOSocketSSL perlPackages.DigestSHA1 ];
14+ buildInputs = with perlPackages; [ IOSocketSSL DigestSHA1 ];
1515
1616 patches = [ ./ddclient-line-buffer-stdout.patch ];
1717
1818 # Use iproute2 instead of ifconfig
1919 preConfigure = ''
2020 touch Makefile.PL
21− substituteInPlace ddclient --replace 'in the output of ifconfig' 'in the output of ip addr show'
22− substituteInPlace ddclient --replace 'ifconfig -a' '${iproute}/sbin/ip addr show'
23− substituteInPlace ddclient --replace 'ifconfig $arg' '${iproute}/sbin/ip addr show $arg'
21+ substituteInPlace ddclient \
22+ --replace 'in the output of ifconfig' 'in the output of ip addr show' \
23+ --replace 'ifconfig -a' '${iproute}/sbin/ip addr show' \
24+ --replace 'ifconfig $arg' '${iproute}/sbin/ip addr show $arg'
2425 '';
2526
2627 installPhase = ''
27− mkdir -p $out/bin
28− cp ddclient $out/bin
28+ install -Dm755 ddclient $out/bin/ddclient
2929 '';
3030
31+ # there are no tests distributed with ddclient
3132 doCheck = false;
3233
3334 meta = with stdenv.lib; {
34− homepage = https://sourceforge.net/p/ddclient/wiki/Home/;
3535 description = "Client for updating dynamic DNS service entries";
36− license = licenses.gpl2Plus;
37−
36+ homepage = https://sourceforge.net/p/ddclient/wiki/Home/;
37+ license = licenses.gpl2Plus;
3838 # Mostly since `iproute` is Linux only.
39− platforms = platforms.linux;
39+ platforms = platforms.linux;
4040 };
4141}