mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 11:10:03 +00:00
userborn: 0.1.0 -> 0.2.0 (#341039)
This commit is contained in:
commit
2eeebc0d5d
|
@ -99,6 +99,10 @@ in
|
||||||
with subtest("sysusers group is created"):
|
with subtest("sysusers group is created"):
|
||||||
print(machine.succeed("getent group sysusers"))
|
print(machine.succeed("getent group sysusers"))
|
||||||
|
|
||||||
|
with subtest("Check files"):
|
||||||
|
print(machine.succeed("grpck -r"))
|
||||||
|
print(machine.succeed("pwck -r"))
|
||||||
|
|
||||||
|
|
||||||
machine.succeed("/run/current-system/specialisation/new-generation/bin/switch-to-configuration switch")
|
machine.succeed("/run/current-system/specialisation/new-generation/bin/switch-to-configuration switch")
|
||||||
|
|
||||||
|
@ -123,5 +127,9 @@ in
|
||||||
|
|
||||||
with subtest("new-group group is created after switching to new generation"):
|
with subtest("new-group group is created after switching to new generation"):
|
||||||
print(machine.succeed("getent group new-group"))
|
print(machine.succeed("getent group new-group"))
|
||||||
|
|
||||||
|
with subtest("Check files"):
|
||||||
|
print(machine.succeed("grpck -r"))
|
||||||
|
print(machine.succeed("pwck -r"))
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,18 +10,18 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "userborn";
|
pname = "userborn";
|
||||||
version = "0.1.0";
|
version = "0.2.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nikstur";
|
owner = "nikstur";
|
||||||
repo = "userborn";
|
repo = "userborn";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-aptFDrL9RPPTu4wp2ee3LVaEruRdCWtLGIKdOgsR+/s=";
|
hash = "sha256-LEKdgmw1inBOi0sriG8laCrtx0ycqR5ftdnmszadx3U=";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "${src.name}/rust/userborn";
|
sourceRoot = "${src.name}/rust/userborn";
|
||||||
|
|
||||||
cargoHash = "sha256-m39AC26E0Pxu1E/ap2kSwr5uznJNgExf5QUrZ+zTNX0=";
|
cargoHash = "sha256-Pjzu6db2WomNsC+jNK1fr1u7koZwUvWPIY5JHMo1gkA=";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeBinaryWrapper ];
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||||
|
|
||||||
|
@ -52,6 +52,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
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";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
maintainers = with lib.maintainers; [ nikstur ];
|
maintainers = with lib.maintainers; [ nikstur ];
|
||||||
mainProgram = "userborn";
|
mainProgram = "userborn";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue