mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
sudo-rs: 0.2.5 -> 0.2.6
https://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.6
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user