summary refs log tree commit diff
path: root/pkgs/tools/networking/ddclient
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-08-13 21:45:25 +0800
committerPeter Hoeg <peter@hoeg.com>2017-08-13 21:56:48 +0800
commitd4f4f418b31f0a70dce50f54ce4280fef76cba08 (patch)
tree8907a679d956f2665b519edbe600c68531776486 /pkgs/tools/networking/ddclient
parentbeec141d84cc9cdc960c960fbf3dde145c2d3e33 (diff)
downloadnixlib-d4f4f418b31f0a70dce50f54ce4280fef76cba08.tar
nixlib-d4f4f418b31f0a70dce50f54ce4280fef76cba08.tar.gz
nixlib-d4f4f418b31f0a70dce50f54ce4280fef76cba08.tar.bz2
nixlib-d4f4f418b31f0a70dce50f54ce4280fef76cba08.tar.lz
nixlib-d4f4f418b31f0a70dce50f54ce4280fef76cba08.tar.xz
nixlib-d4f4f418b31f0a70dce50f54ce4280fef76cba08.tar.zst
nixlib-d4f4f418b31f0a70dce50f54ce4280fef76cba08.zip
ddclient: minor packaging cleanups
Diffstat (limited to 'pkgs/tools/networking/ddclient')
-rw-r--r--pkgs/tools/networking/ddclient/default.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/pkgs/tools/networking/ddclient/default.nix b/pkgs/tools/networking/ddclient/default.nix
index 333292d9fab8..6d3ca27df1d6 100644
--- a/pkgs/tools/networking/ddclient/default.nix
+++ b/pkgs/tools/networking/ddclient/default.nix
@@ -11,31 +11,31 @@ buildPerlPackage rec {
 
   outputs = [ "out" ];
 
-  buildInputs = [ perlPackages.IOSocketSSL perlPackages.DigestSHA1 ];
+  buildInputs = with perlPackages; [ IOSocketSSL DigestSHA1 ];
 
   patches = [ ./ddclient-line-buffer-stdout.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'
+    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'
   '';
 
   installPhase = ''
-    mkdir -p $out/bin
-    cp ddclient $out/bin
+    install -Dm755 ddclient $out/bin/ddclient
   '';
 
+  # there are no tests distributed with ddclient
   doCheck = false;
 
   meta = with stdenv.lib; {
-    homepage = https://sourceforge.net/p/ddclient/wiki/Home/;
     description = "Client for updating dynamic DNS service entries";
-    license = licenses.gpl2Plus;
-
+    homepage    = https://sourceforge.net/p/ddclient/wiki/Home/;
+    license     = licenses.gpl2Plus;
     # Mostly since `iproute` is Linux only.
-    platforms = platforms.linux;
+    platforms   = platforms.linux;
   };
 }