run0-sudo-shim: 1.3.1 -> 1.4.2 (#537139)

This commit is contained in:
Grimmauld 2026-07-01 08:16:19 +00:00 committed by GitHub
commit ae8481fa71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,22 +5,31 @@
nix-update-script,
coreutils,
polkit-stdin-agent,
installShellFiles,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "run0-sudo-shim";
version = "1.3.1";
version = "1.4.2";
src = fetchFromGitHub {
owner = "LordGrimmauld";
repo = "run0-sudo-shim";
tag = finalAttrs.version;
hash = "sha256-QkDoEBgcWh/eKX8jxctMNEy08Sf8kpxXFhWbsygTWz8=";
hash = "sha256-J/I7VPXpOwNtEk9H+lbZVT+xJYBsSKgnMlwzlVIJSWk=";
};
cargoHash = "sha256-ly2e2x1Z1XEXblGqWi+/r5q2FmvpekVfzGVGm+S1xio=";
cargoHash = "sha256-JfxMmYgYLKxVqj8H0/qRGn9z8XNoNpPK3RcIhb/RKOc=";
__structuredAttrs = true;
nativeBuildInputs = [
installShellFiles
versionCheckHook
];
doInstallCheck = true;
env = {
POLKIT_STDIN_AGENT = lib.getExe polkit-stdin-agent;
TRUE = lib.getExe' coreutils "true";
@ -28,6 +37,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
postInstall = ''
ln -s $out/bin/run0-sudo-shim $out/bin/sudo
installManPage target/tmp/run0-sudo-shim/manpage/*
installShellCompletion \
target/tmp/run0-sudo-shim/completion/sudo.{bash,fish} \
--zsh target/tmp/run0-sudo-shim/completion/_sudo
'';
passthru.updateScript = nix-update-script { };