depot/third_party/nixpkgs/pkgs/tools/filesystems/dupe-krill/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

26 lines
676 B
Nix

{ lib, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "dupe-krill";
version = "1.4.9";
src = fetchFromGitHub {
owner = "kornelski";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ceeKG45OQLxiYcwq2Kumbpd+lkyY+W/og1/6Zdpd3zo=";
postFetch = ''
cp ${./Cargo.lock} $out/Cargo.lock
'';
};
cargoHash = "sha256-jEMvvFOcFij4lT/5Y5xARaVURT/evV9u1Vkqtm4al+g=";
meta = with lib; {
description = "Fast file deduplicator";
homepage = "https://github.com/kornelski/dupe-krill";
license = with licenses; [ mit ];
maintainers = with maintainers; [ urbas ];
mainProgram = "dupe-krill";
};
}