diff options
author | Norbert Melzer <timmelzer@gmail.com> | 2024-05-23 00:21:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-22 22:21:04 +0000 |
commit | 04861e85def59d502b41c4fa4a9d001b5f26ebc2 (patch) | |
tree | 72cd553cd2e54fa08236088ee3994baf53799c1e /pkgs/by-name/ni | |
parent | 4469a8c99f67d87468fdcf5dbc38d315566fe448 (diff) |
nix-janitor: init at 0.2.0 (#313130)
Diffstat (limited to 'pkgs/by-name/ni')
-rw-r--r-- | pkgs/by-name/ni/nix-janitor/package.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/by-name/ni/nix-janitor/package.nix b/pkgs/by-name/ni/nix-janitor/package.nix new file mode 100644 index 0000000000000..f12e765fd0002 --- /dev/null +++ b/pkgs/by-name/ni/nix-janitor/package.nix @@ -0,0 +1,32 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + nix-update-script, +}: + +rustPlatform.buildRustPackage rec { + pname = "nix-janitor"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "nobbz"; + repo = "nix-janitor"; + rev = "refs/tags/${version}"; + hash = "sha256-nGtbBNU6xFWXnmL1AaUbSpO0z5Kq2t/Mn8sqwzjNlkE="; + }; + + cargoHash = "sha256-j3i4c3KjI8ehg42FqbPp+8M15zT9Bu76P4zv8ApUoeA="; + + passthru.updateScript = nix-update-script { }; + + meta = { + homepage = "https://github.com/nobbz/nix-janitor"; + changelog = "https://github.com/NobbZ/nix-janitor/blob/${version}/CHANGELOG.md"; + description = "A tool to clean up old profile generations"; + mainProgram = "janitor"; + platforms = lib.platforms.linux; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.nobbz ]; + }; +} |