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