diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-05-27 18:01:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-27 18:01:17 +0000 |
commit | 12993f1c4a8df9a874206d5010e87e678d8d16e1 (patch) | |
tree | 6accf6500086ba62264c44da66b1aee46f217bc3 /pkgs/by-name/ni | |
parent | 85536b3681e0dd2bbbb6272fac414d634467e090 (diff) | |
parent | ad90a96ebc5479c22edcdb4c2e379d04a5268914 (diff) |
Merge staging-next into staging
Diffstat (limited to 'pkgs/by-name/ni')
-rw-r--r-- | pkgs/by-name/ni/nix-janitor/package.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/by-name/ni/nix-janitor/package.nix b/pkgs/by-name/ni/nix-janitor/package.nix index f12e765fd0002..25595ee83822e 100644 --- a/pkgs/by-name/ni/nix-janitor/package.nix +++ b/pkgs/by-name/ni/nix-janitor/package.nix @@ -2,21 +2,32 @@ lib, rustPlatform, fetchFromGitHub, + installShellFiles, nix-update-script, }: rustPlatform.buildRustPackage rec { pname = "nix-janitor"; - version = "0.2.0"; + version = "0.3.1"; src = fetchFromGitHub { owner = "nobbz"; repo = "nix-janitor"; rev = "refs/tags/${version}"; - hash = "sha256-nGtbBNU6xFWXnmL1AaUbSpO0z5Kq2t/Mn8sqwzjNlkE="; + hash = "sha256-xoVByI17rt2SCY3ULg12S8QsoXGhQWZlOpPpK2mfcPY="; }; - cargoHash = "sha256-j3i4c3KjI8ehg42FqbPp+8M15zT9Bu76P4zv8ApUoeA="; + cargoHash = "sha256-QG2hHM4KBSU6+droew2WnOFxWRTpk9griIPMD8MLSbw="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + for shell in bash fish zsh; do + completionFile=janitor.$shell + $out/bin/janitor --completions $shell > $completionFile + installShellCompletion $completionFile + done + ''; passthru.updateScript = nix-update-script { }; |