2023-10-09 19:29:22 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, testers, conceal }:
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "conceal";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.5.4";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TD-Sky";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-N/KlxtxzEDwUvQMpgf2S6u7MaYiF0eXnMrGoowc08J0=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-50EHc8ZHzbl5IFpi5k3/Katc3FaxBgnpf8COrpPHZWk=";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion \
|
|
|
|
completions/{cnc/cnc,conceal/conceal}.{bash,fish} \
|
|
|
|
--zsh completions/{cnc/_cnc,conceal/_conceal}
|
|
|
|
'';
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# There are not any tests in source project.
|
2023-04-12 12:48:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.tests = testers.testVersion {
|
|
|
|
package = conceal;
|
|
|
|
command = "conceal --version";
|
|
|
|
version = "conceal ${version}";
|
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Trash collector written in Rust";
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "https://github.com/TD-Sky/conceal";
|
|
|
|
license = licenses.mit;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ jedsek kashw2 ];
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
}
|