userborn: add updateScript and add nixos test to package.nix (#339469)
This commit is contained in:
commit
9ac63f87b5
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user