tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
sudo: add updateScript
Ryan Hendrickson
6 months ago
b8ee90d1
0d0cf894
+11
-1
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
su
sudo
package.nix
+11
-1
pkgs/by-name/su/sudo/package.nix
···
8
groff,
9
sssd,
10
nixosTests,
0
0
0
11
sendmailPath ? "/run/wrappers/bin/sendmail",
12
withInsults ? false,
13
withSssd ? false,
···
72
rm $out/share/doc/sudo/ChangeLog
73
'';
74
75
-
passthru.tests = { inherit (nixosTests) sudo; };
0
0
0
0
0
0
0
76
77
meta = with lib; {
78
description = "Command to run commands as root";
···
8
groff,
9
sssd,
10
nixosTests,
11
+
genericUpdater,
12
+
writeShellScript,
13
+
curl,
14
sendmailPath ? "/run/wrappers/bin/sendmail",
15
withInsults ? false,
16
withSssd ? false,
···
75
rm $out/share/doc/sudo/ChangeLog
76
'';
77
78
+
passthru = {
79
+
tests = { inherit (nixosTests) sudo; };
80
+
updateScript = genericUpdater {
81
+
versionLister = writeShellScript "sudo-versionLister" ''
82
+
${lib.getExe curl} -sL https://www.sudo.ws/dist | grep -Po 'href="sudo-\K[\w.]*(?=\.tar\.gz")'
83
+
'';
84
+
};
85
+
};
86
87
meta = with lib; {
88
description = "Command to run commands as root";