Skip to content

Commit e31d882

Browse files
committed
1 parent 123777e commit e31d882

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

pkgs/by-name/su/sudo-rs/package.nix

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@
88
pam,
99
pandoc,
1010
rustPlatform,
11+
tzdata,
1112
}:
1213

1314
rustPlatform.buildRustPackage rec {
1415
pname = "sudo-rs";
15-
version = "0.2.5";
16+
version = "0.2.6";
1617

1718
src = fetchFromGitHub {
1819
owner = "trifectatechfoundation";
1920
repo = "sudo-rs";
2021
rev = "v${version}";
21-
hash = "sha256-apvMcn/1dV9uujyoHikiOxregwWtAFPvrZvYjd3XQwM=";
22+
hash = "sha256-vZv3IVSW6N0puoWJBYQPmNntgHPt9SPV07TEuWN/bHw=";
2223
};
2324
useFetchCargoVendor = true;
24-
cargoHash = "sha256-EAfNg7hUsynFZ+EcUqeD9o44BakBYIMgxRXc4vcl8HY=";
25+
cargoHash = "sha256-/CbU2ds2VQ2IXx7GKxRO3vePzLXJXabA1FcyIGPsngw=";
2526

2627
nativeBuildInputs = [
2728
installShellFiles
@@ -33,8 +34,11 @@ rustPlatform.buildRustPackage rec {
3334
# Don't attempt to generate the docs in a (pan)Docker container
3435
postPatch = ''
3536
substituteInPlace util/generate-docs.sh \
36-
--replace "/usr/bin/env bash" ${lib.getExe bash} \
37-
--replace util/pandoc.sh pandoc
37+
--replace-fail "/usr/bin/env bash" ${lib.getExe bash} \
38+
--replace-fail util/pandoc.sh pandoc
39+
40+
substituteInPlace build.rs \
41+
--replace-fail "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo"
3842
'';
3943

4044
postInstall = ''

0 commit comments

Comments
 (0)