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
{ lib
2
, bash
3
, fetchFromGitHub
4
-
, fetchpatch
5
, installShellFiles
6
, nix-update-script
7
, nixosTests
···
12
13
rustPlatform.buildRustPackage rec {
14
pname = "sudo-rs";
15
-
version = "0.2.0";
16
17
src = fetchFromGitHub {
18
owner = "memorysafety";
19
repo = "sudo-rs";
20
rev = "v${version}";
21
-
hash = "sha256-Kk5D3387hdl6eGWTSV003r+XajuDh6YgHuqYlj9NnaQ=";
22
};
23
-
cargoHash = "sha256-yeMK37tOgJcs9pW3IclpR5WMXx0gMDJ2wcmInxJYbQ8=";
24
25
nativeBuildInputs = [ installShellFiles pandoc ];
26
27
buildInputs = [ pam ];
28
-
29
-
patches = [
30
-
(fetchpatch {
31
-
# @R-VdP's patch to work with NixOS' suid wrappers
32
-
name = "Skip self_check when executed as root.patch";
33
-
url = "https://github.com/R-VdP/sudo-rs/commit/a44541dcb36b94f938daaed66b3ff06cfc1c2b40.patch";
34
-
hash = "sha256-PdmOqp/NDjFy8ve4jEOi58e0N9xUnaVKioQwdC5Jf1U=";
35
-
})
36
-
];
37
38
# Don't attempt to generate the docs in a (pan)Docker container
39
postPatch = ''
···
1
{ lib
2
, bash
3
, fetchFromGitHub
0
4
, installShellFiles
5
, nix-update-script
6
, nixosTests
···
11
12
rustPlatform.buildRustPackage rec {
13
pname = "sudo-rs";
14
+
version = "0.2.1";
15
16
src = fetchFromGitHub {
17
owner = "memorysafety";
18
repo = "sudo-rs";
19
rev = "v${version}";
20
+
hash = "sha256-EQEdNDUXEMMiFZKuu9LR9ywjvKWyM5bWcRHHUB9+gp4=";
21
};
22
+
cargoHash = "sha256-Zs9/A7u4yMLKY4cAUCnsqRHgkxI8R3w1JwkAd2lw0eo=";
23
24
nativeBuildInputs = [ installShellFiles pandoc ];
25
26
buildInputs = [ pam ];
0
0
0
0
0
0
0
0
0
27
28
# Don't attempt to generate the docs in a (pan)Docker container
29
postPatch = ''