sudo: add updateScript

+11 -1
+11 -1
pkgs/by-name/su/sudo/package.nix
··· 8 groff, 9 sssd, 10 nixosTests, 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; }; 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";