1 { lib, fetchFromGitHub, perlPackages, iproute2, perl }:
3 perlPackages.buildPerlPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "0hf377g4j9r9sac75xp17nk2h58mazswz4vkg4g2gl2yyhvzq91w";
14 # perl packages by default get devdoc which isn't present
17 buildInputs = with perlPackages; [ IOSocketSSL DigestSHA1 DataValidateIP JSONPP IOSocketInet6 ];
19 # Use iproute2 instead of ifconfig
22 substituteInPlace ddclient \
23 --replace 'in the output of ifconfig' 'in the output of ip addr show' \
24 --replace 'ifconfig -a' '${iproute2}/sbin/ip addr show' \
25 --replace 'ifconfig $arg' '${iproute2}/sbin/ip addr show $arg' \
26 --replace '/usr/bin/perl' '${perl}/bin/perl' # Until we get the patchShebangs fixed (issue #55786) we need to patch this manually
32 install -Dm755 ddclient $out/bin/ddclient
33 install -Dm644 -t $out/share/doc/ddclient COP* ChangeLog README.* RELEASENOTE
38 # there are no tests distributed with ddclient
42 description = "Client for updating dynamic DNS service entries";
43 homepage = "https://ddclient.net/";
44 license = licenses.gpl2Plus;
45 # Mostly since `iproute` is Linux only.
46 platforms = platforms.linux;
47 maintainers = with maintainers; [ SuperSandro2000 ];