Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchpatch, fetchurl, nettle }: 2 3stdenv.mkDerivation rec { 4 pname = "rdfind"; 5 version = "1.5.0"; 6 7 src = fetchurl { 8 url = "https://rdfind.pauldreik.se/${pname}-${version}.tar.gz"; 9 sha256 = "103hfqzgr6izmj57fcy4jsa2nmb1ax43q4b5ij92pcgpaq9fsl21"; 10 }; 11 12 patches = [ 13 (fetchpatch { 14 name = "include-limits.patch"; 15 url = "https://github.com/pauldreik/rdfind/commit/61877de88d782b63b17458a61fcc078391499b29.patch"; 16 sha256 = "0igzm4833cn905pj84lgr88nd5gx35dnjl8kl8vrwk7bpyii6a8l"; 17 }) 18 ]; 19 20 buildInputs = [ nettle ]; 21 22 meta = with lib; { 23 homepage = "https://rdfind.pauldreik.se/"; 24 description = "Removes or hardlinks duplicate files very swiftly"; 25 license = licenses.gpl2Plus; 26 maintainers = [ maintainers.wmertens ]; 27 platforms = platforms.all; 28 }; 29}