1 { lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, testers, conceal }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-zrG4AE8I1nVvEGNvi7tOsqn6yNOqpRmhJzbuJINnJBw=";
15 lockFile = ./Cargo.lock;
17 "trash-3.0.1" = "sha256-6GTdT7pVy9yVMeZglPUS4kub2xVLW1h1uynE6zX3w98=";
21 nativeBuildInputs = [ installShellFiles ];
24 installShellCompletion \
25 completions/{cnc/cnc,conceal/conceal}.{bash,fish} \
26 --zsh completions/{cnc/_cnc,conceal/_conceal}
29 # There are not any tests in source project.
32 passthru.tests = testers.testVersion {
34 command = "conceal --version";
35 version = "conceal ${version}";
39 description = "A trash collector written in Rust";
40 homepage = "https://github.com/TD-Sky/conceal";
41 license = licenses.mit;
42 maintainers = with maintainers; [ jedsek kashw2 ];
43 broken = stdenv.isDarwin;