userborn: run the nixos tests whenever the package gets updated

This commit is contained in:
r-vdp 2024-09-04 10:14:13 +02:00
parent a46a1555b8
commit fc0d63ba27
No known key found for this signature in database

View File

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