Files
nixpkgs/pkgs/by-name/co/conceal/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
stdenv,
testers,
conceal,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "conceal";
version = "0.6.2";
src = fetchFromGitHub {
owner = "TD-Sky";
repo = "conceal";
tag = "v${finalAttrs.version}";
hash = "sha256-B6vZ4Xl7H6KOlscys+FT8fMXb0Xrvosr2DXHzvRjLis=";
};
cargoHash = "sha256-aBc9ijRObFi9AyQxSoQZs/3exAzOlYq5uNqFfvjNhvw=";
env.CONCEAL_GEN_COMPLETIONS = "true";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion \
completions/{cnc/cnc,conceal/conceal}.{bash,fish} \
--zsh completions/{cnc/_cnc,conceal/_conceal}
'';
# There are not any tests in source project.
doCheck = false;
passthru.tests = testers.testVersion {
package = conceal;
command = "conceal --version";
version = "conceal ${finalAttrs.version}";
};
meta = {
description = "Trash collector written in Rust";
homepage = "https://github.com/TD-Sky/conceal";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
jedsek
kashw2
];
broken = stdenv.hostPlatform.isDarwin;
};
})