summary refs log tree commit diff
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2017-11-12 23:53:25 +0100
committerc0bw3b <c0bw3b@users.noreply.github.com>2017-11-13 01:01:41 +0100
commitbf5484fec80fc8971e56e100fec133d555b2f59c (patch)
tree111d1de7295e42d15de19349ef79af47eb6c56e1
parentbdce9327a12e6fec8a79d38ae456bb02c20ac1a8 (diff)
downloadnixlib-bf5484fec80fc8971e56e100fec133d555b2f59c.tar
nixlib-bf5484fec80fc8971e56e100fec133d555b2f59c.tar.gz
nixlib-bf5484fec80fc8971e56e100fec133d555b2f59c.tar.bz2
nixlib-bf5484fec80fc8971e56e100fec133d555b2f59c.tar.lz
nixlib-bf5484fec80fc8971e56e100fec133d555b2f59c.tar.xz
nixlib-bf5484fec80fc8971e56e100fec133d555b2f59c.tar.zst
nixlib-bf5484fec80fc8971e56e100fec133d555b2f59c.zip
fdupes: 20150902 -> 1.6.1
-rw-r--r--pkgs/tools/misc/fdupes/default.nix35
1 files changed, 16 insertions, 19 deletions
diff --git a/pkgs/tools/misc/fdupes/default.nix b/pkgs/tools/misc/fdupes/default.nix
index 0ab97a7e6715..84b61f9aae92 100644
--- a/pkgs/tools/misc/fdupes/default.nix
+++ b/pkgs/tools/misc/fdupes/default.nix
@@ -1,31 +1,28 @@
-{stdenv, fetchFromGitHub}:
+{ stdenv, fetchFromGitHub }:
 
 stdenv.mkDerivation rec {
-  name = "fdupes-20150902";
+  name = "fdupes-${version}";
+  version = "1.6.1";
 
   src = fetchFromGitHub {
-    owner = "jbruchon";
-    repo  = "fdupes-jody";
-    rev   = "414b1fd64c0a739d4c52228eb72487782855b939";
-    sha256 = "1q6jcj79pljm1f24fqgk8x53xz2x0p1986znw75iljxqyzbvw0ap";
+    owner = "adrianlopezroche";
+    repo  = "fdupes";
+    rev   = "v${version}";
+    sha256 = "19b6vqblddaw8ccw4sn0qsqzbswlhrz8ia6n4m3hymvcxn8skpz9";
   };
 
-  makeFlags = "PREFIX=\${out}";
+  makeFlags = "PREFIX=$(out)";
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "Identifies duplicate files residing within specified directories";
     longDescription = ''
-      FDUPES compares inodes' stats, hash sums, and byte by byte file
-      contents to find duplicate files within a set of directories and
-      then applies various actions to those sets, e.g.:
-      * remove some of the duplicates,
-      * turn all the files in a set into hardlinks.
+      fdupes searches the given path for duplicate files.
+      Such files are found by comparing file sizes and MD5 signatures,
+      followed by a byte-by-byte comparison.
     '';
-    homepage = src.meta.homepage;
-    license = stdenv.lib.licenses.mit;
-    platforms = stdenv.lib.platforms.all;
-    maintainers = [
-      stdenv.lib.maintainers.z77z
-    ];
+    homepage = https://github.com/adrianlopezroche/fdupes;
+    license = licenses.mit;
+    platforms = platforms.all;
+    maintainers = [ maintainers.z77z ];
   };
 }