nixpkgs/pkgs/applications/misc/conceal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.1 KiB
Nix
Raw Normal View History

2023-09-03 08:28:24 +02:00
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, testers, conceal }:
2023-04-08 15:30:17 +02:00
rustPlatform.buildRustPackage rec {
pname = "conceal";
2023-09-03 08:28:24 +02:00
version = "0.4.1";
2023-04-08 15:30:17 +02:00
src = fetchFromGitHub {
owner = "TD-Sky";
repo = pname;
rev = "v${version}";
2023-09-03 08:28:24 +02:00
sha256 = "sha256-zrG4AE8I1nVvEGNvi7tOsqn6yNOqpRmhJzbuJINnJBw=";
2023-04-08 15:30:17 +02:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"trash-3.0.1" = "sha256-6GTdT7pVy9yVMeZglPUS4kub2xVLW1h1uynE6zX3w98=";
};
};
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion \
completions/{cnc/cnc,conceal/conceal}.{bash,fish} \
--zsh completions/{cnc/_cnc,conceal/_conceal}
'';
2023-09-03 08:28:24 +02:00
# There are not any tests in source project.
2023-04-08 15:30:17 +02:00
doCheck = false;
2023-09-03 08:28:24 +02:00
passthru.tests = testers.testVersion {
package = conceal;
command = "conceal --version";
version = "conceal ${version}";
};
2023-04-08 15:30:17 +02:00
meta = with lib; {
description = "A trash collector written in Rust";
homepage = "https://github.com/TD-Sky/conceal";
license = licenses.mit;
2023-09-03 08:28:24 +02:00
maintainers = with maintainers; [ jedsek kashw2 ];
2023-05-08 19:46:41 +02:00
broken = stdenv.isDarwin;
2023-04-08 15:30:17 +02:00
};
}