mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
run0-sudo-shim: init at 1.3.1
Co-authored-by: Grimmauld <Grimmauld@grimmauld.de>
(cherry picked from commit f80687b86b)
This commit is contained in:
parent
7380c6a1fd
commit
e8804fa6d3
1 changed files with 44 additions and 0 deletions
44
pkgs/by-name/ru/run0-sudo-shim/package.nix
Normal file
44
pkgs/by-name/ru/run0-sudo-shim/package.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
coreutils,
|
||||
polkit-stdin-agent,
|
||||
}:
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "run0-sudo-shim";
|
||||
version = "1.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "LordGrimmauld";
|
||||
repo = "run0-sudo-shim";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-QkDoEBgcWh/eKX8jxctMNEy08Sf8kpxXFhWbsygTWz8=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-ly2e2x1Z1XEXblGqWi+/r5q2FmvpekVfzGVGm+S1xio=";
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
env = {
|
||||
POLKIT_STDIN_AGENT = lib.getExe polkit-stdin-agent;
|
||||
TRUE = lib.getExe' coreutils "true";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
ln -s $out/bin/run0-sudo-shim $out/bin/sudo
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Shim for the sudo command that utilizes run0";
|
||||
changelog = "https://github.com/LordGrimmauld/run0-sudo-shim/releases/tag/${finalAttrs.version}";
|
||||
mainProgram = "sudo";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [
|
||||
zimward
|
||||
];
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue