Skip to content

Commit

Permalink
userborn: add updateScript and add nixos test to package.nix (#339469)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikstur authored Sep 4, 2024
2 parents e88b318 + d0b21a4 commit 9ac63f8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkgs/by-name/us/userborn/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
fetchFromGitHub,
makeBinaryWrapper,
mkpasswd,
nixosTests,
nix-update-script,
}:

rustPlatform.buildRustPackage rec {
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 9ac63f8

Please sign in to comment.