···
13
-
rustPlatform.buildRustPackage rec {
14
+
rustPlatform.buildRustPackage (finalAttrs: {
owner = "trifectatechfoundation";
20
-
rev = "v${version}";
21
-
hash = "sha256-apvMcn/1dV9uujyoHikiOxregwWtAFPvrZvYjd3XQwM=";
21
+
tag = "v${finalAttrs.version}";
22
+
hash = "sha256-vZv3IVSW6N0puoWJBYQPmNntgHPt9SPV07TEuWN/bHw=";
useFetchCargoVendor = true;
24
-
cargoHash = "sha256-EAfNg7hUsynFZ+EcUqeD9o44BakBYIMgxRXc4vcl8HY=";
25
+
cargoHash = "sha256-/CbU2ds2VQ2IXx7GKxRO3vePzLXJXabA1FcyIGPsngw=";
···
# Don't attempt to generate the docs in a (pan)Docker container
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
40
+
substituteInPlace build.rs \
41
+
--replace-fail "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo"
···
tests = nixosTests.sudo-rs;
description = "Memory safe implementation of sudo and su";
homepage = "https://github.com/trifectatechfoundation/sudo-rs";
81
-
changelog = "${meta.homepage}/blob/v${version}/CHANGELOG.md";
82
-
license = with licenses; [
85
+
changelog = "${finalAttrs.meta.homepage}/blob/v${finalAttrs.version}/CHANGELOG.md";
86
+
license = with lib.licenses; [
86
-
maintainers = with maintainers; [ nicoo ];
90
+
maintainers = with lib.maintainers; [
88
-
platforms = platforms.linux;
95
+
platforms = lib.platforms.linux;