summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/symlinks/default.nix27
1 files changed, 13 insertions, 14 deletions
diff --git a/pkgs/tools/system/symlinks/default.nix b/pkgs/tools/system/symlinks/default.nix
index ec2f90876b32..240ad9de19d1 100644
--- a/pkgs/tools/system/symlinks/default.nix
+++ b/pkgs/tools/system/symlinks/default.nix
@@ -2,27 +2,26 @@
 
 stdenv.mkDerivation rec {
   name = "symlinks-${version}";
-  version = "1.4";
+  version = "1.4.3";
 
   src = fetchurl {
-    url = "http://www.ibiblio.org/pub/Linux/utils/file/${name}.tar.gz";
-    sha256 = "1683psyi8jwq6anhnkwwyaf7pfksf19v04fignd6vi52s2fnifxh";
+    url = "https://github.com/brandt/symlinks/archive/v${version}.tar.gz";
+    sha256 = "1cihrd3dap52z1msdhhgda7b7wy1l5ysfvyba8yxb3zjk0l5n417";
   };
 
+  buildFlags = [ "CC=${stdenv.cc}/bin/cc" ];
+
   installPhase = ''
-    mkdir -p $out/bin
-    mkdir -p $out/share/man
-    cp symlinks $out/bin/
-    cp symlinks.8 $out/share/man/
+    mkdir -p $out/bin $out/share/man/man8
+    cp symlinks $out/bin
+    cp symlinks.8 $out/share/man/man8
   '';
 
-  # No license is mentioned in the code but
-  # http://www.ibiblio.org/pub/Linux/utils/file/symlinks.lsm
-  # and other package managers list it as
-  # "(c) Mark Lord, freely distributable"
   meta = with stdenv.lib; {
-    description = "A symbolic link maintenance utility";
-    maintainers = [ maintainers.goibhniu ];
-    platforms = platforms.linux;
+    description = "Find and remedy problematic symbolic links on a system";
+    homepage = "https://github.com/brandt/symlinks";
+    license = licenses.mit;
+    maintainers = with maintainers; [ goibhniu ckauhaus ];
+    platforms = platforms.unix;
   };
 }