userborn: add updateScript and add nixos test to package.nix (#339469)

This commit is contained in:
nikstur 2024-09-04 23:24:42 +02:00 committed by GitHub
commit 9ac63f87b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,6 +4,8 @@
fetchFromGitHub,
makeBinaryWrapper,
mkpasswd,
nixosTests,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
@ -33,6 +35,19 @@ rustPlatform.buildRustPackage rec {
stripAllList = [ "bin" ];
passthru = {
updateScript = nix-update-script { };
tests = {
inherit (nixosTests)
userborn
userborn-mutable-users
userborn-mutable-etc
userborn-immutable-users
userborn-immutable-etc
;
};
};
meta = with lib; {
homepage = "https://github.com/nikstur/userborn";
description = "Declaratively bear (manage) Linux users and groups";