Unverified Commit 9ac63f87 authored by nikstur's avatar nikstur Committed by GitHub
Browse files

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

parents e88b318e d0b21a43
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -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";