Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, libgcrypt 2, pkg-config, glib, linuxHeaders ? stdenv.cc.libc.linuxHeaders, sqlite }: 3 4stdenv.mkDerivation rec { 5 pname = "duperemove"; 6 version = "0.11.3"; 7 8 src = fetchFromGitHub { 9 owner = "markfasheh"; 10 repo = "duperemove"; 11 rev = "v${version}"; 12 sha256 = "sha256-WjUM52IqMDvBzeGHo7p4JcvMO5iPWPVOr8GJ3RSsnUs="; 13 }; 14 15 nativeBuildInputs = [ pkg-config ]; 16 buildInputs = [ libgcrypt glib linuxHeaders sqlite ]; 17 18 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 19 20 meta = with lib; { 21 description = "A simple tool for finding duplicated extents and submitting them for deduplication"; 22 homepage = "https://github.com/markfasheh/duperemove"; 23 license = licenses.gpl2; 24 maintainers = with maintainers; [ bluescreen303 thoughtpolice ]; 25 platforms = platforms.linux; 26 }; 27}