tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
sudo-rs: 0.2.0 -> 0.2.1
Kirill Radzikhovskyy
2 years ago
7cea28f1
3e9edb76
+3
-13
1 changed file
expand all
collapse all
unified
split
pkgs
tools
security
sudo-rs
default.nix
+3
-13
pkgs/tools/security/sudo-rs/default.nix
···
1
1
{ lib
2
2
, bash
3
3
, fetchFromGitHub
4
4
-
, fetchpatch
5
4
, installShellFiles
6
5
, nix-update-script
7
6
, nixosTests
···
12
11
13
12
rustPlatform.buildRustPackage rec {
14
13
pname = "sudo-rs";
15
15
-
version = "0.2.0";
14
14
+
version = "0.2.1";
16
15
17
16
src = fetchFromGitHub {
18
17
owner = "memorysafety";
19
18
repo = "sudo-rs";
20
19
rev = "v${version}";
21
21
-
hash = "sha256-Kk5D3387hdl6eGWTSV003r+XajuDh6YgHuqYlj9NnaQ=";
20
20
+
hash = "sha256-EQEdNDUXEMMiFZKuu9LR9ywjvKWyM5bWcRHHUB9+gp4=";
22
21
};
23
23
-
cargoHash = "sha256-yeMK37tOgJcs9pW3IclpR5WMXx0gMDJ2wcmInxJYbQ8=";
22
22
+
cargoHash = "sha256-Zs9/A7u4yMLKY4cAUCnsqRHgkxI8R3w1JwkAd2lw0eo=";
24
23
25
24
nativeBuildInputs = [ installShellFiles pandoc ];
26
25
27
26
buildInputs = [ pam ];
28
28
-
29
29
-
patches = [
30
30
-
(fetchpatch {
31
31
-
# @R-VdP's patch to work with NixOS' suid wrappers
32
32
-
name = "Skip self_check when executed as root.patch";
33
33
-
url = "https://github.com/R-VdP/sudo-rs/commit/a44541dcb36b94f938daaed66b3ff06cfc1c2b40.patch";
34
34
-
hash = "sha256-PdmOqp/NDjFy8ve4jEOi58e0N9xUnaVKioQwdC5Jf1U=";
35
35
-
})
36
36
-
];
37
27
38
28
# Don't attempt to generate the docs in a (pan)Docker container
39
29
postPatch = ''