mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
gcan: init at v1.1.1 (#531350)
This commit is contained in:
34
pkgs/by-name/gc/gcan/package.nix
Normal file
34
pkgs/by-name/gc/gcan/package.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "gcan";
|
||||
version = "1.1.1";
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "applicative-systems";
|
||||
repo = "gcan";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-BZfdc3ddAa9CPC3GOH9G3QJbECbSRY7ymzIMtYl076M=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-5oE69FYTAV6JiTAN4A79+ndI0vHrbAi1JeEJcD+eY2c=";
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
meta = {
|
||||
description = "Analyze, filter, and prune Nix GC roots";
|
||||
homepage = "https://github.com/applicative-systems/gcan";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.tfc ];
|
||||
mainProgram = "gcan";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user