about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/filesystems/dupe-krill/default.nix
blob: b28aaadca90661ba1b22c208cd6b77ce602033fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, fetchFromGitHub, rustPlatform, runCommand }:

rustPlatform.buildRustPackage rec {
  pname = "dupe-krill";
  version = "1.4.8";

  src = fetchFromGitHub {
    owner = "kornelski";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-2fT9bw5LgJUQ0tm1T/vV5SaDjNH0OGKt7QUQLd7nmOs=";
    postFetch = ''
      cp ${./Cargo.lock} $out/Cargo.lock
    '';
  };

  cargoSha256 = "sha256-JUcIDUVzSLzblb2EbmSfuCAB+S0fyW6wpGF0b/xR+b0=";

  meta = with lib; {
    description = " A fast file deduplicator.";
    homepage = "https://github.com/kornelski/dupe-krill";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ urbas ];
  };
}