sudo-rs: 0.2.5 -> 0.2.6

https://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.6
This commit is contained in:
r-vdp
2025-05-07 20:26:26 +02:00
parent 123777e9fd
commit e31d882bb9

View File

@@ -8,20 +8,21 @@
pam,
pandoc,
rustPlatform,
tzdata,
}:
rustPlatform.buildRustPackage rec {
pname = "sudo-rs";
version = "0.2.5";
version = "0.2.6";
src = fetchFromGitHub {
owner = "trifectatechfoundation";
repo = "sudo-rs";
rev = "v${version}";
hash = "sha256-apvMcn/1dV9uujyoHikiOxregwWtAFPvrZvYjd3XQwM=";
hash = "sha256-vZv3IVSW6N0puoWJBYQPmNntgHPt9SPV07TEuWN/bHw=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-EAfNg7hUsynFZ+EcUqeD9o44BakBYIMgxRXc4vcl8HY=";
cargoHash = "sha256-/CbU2ds2VQ2IXx7GKxRO3vePzLXJXabA1FcyIGPsngw=";
nativeBuildInputs = [
installShellFiles
@@ -33,8 +34,11 @@ rustPlatform.buildRustPackage rec {
# Don't attempt to generate the docs in a (pan)Docker container
postPatch = ''
substituteInPlace util/generate-docs.sh \
--replace "/usr/bin/env bash" ${lib.getExe bash} \
--replace util/pandoc.sh pandoc
--replace-fail "/usr/bin/env bash" ${lib.getExe bash} \
--replace-fail util/pandoc.sh pandoc
substituteInPlace build.rs \
--replace-fail "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo"
'';
postInstall = ''