nixpkgs/pkgs/by-name/us/userborn/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.2 KiB
Nix
Raw Normal View History

2024-08-05 14:34:56 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
2024-10-11 16:17:08 +00:00
libxcrypt,
nixosTests,
2024-09-04 08:14:40 +00:00
nix-update-script,
2024-08-05 14:34:56 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "userborn";
2024-10-11 16:17:08 +00:00
version = "0.3.0";
2024-08-05 14:34:56 +00:00
src = fetchFromGitHub {
owner = "nikstur";
repo = "userborn";
rev = version;
2024-10-11 16:17:08 +00:00
hash = "sha256-ABePye1zuGDH74BL6AP05rR9eBOYu1SoVpd2TcZQMW8=";
2024-08-05 14:34:56 +00:00
};
sourceRoot = "${src.name}/rust/userborn";
2024-10-11 16:17:08 +00:00
cargoHash = "sha256-/S2rkZyXHN5NiW9TFhKguqtf/udFcDOTfV2jYRMV14s=";
2024-08-05 14:34:56 +00:00
2024-10-11 16:17:08 +00:00
nativeBuildInputs = [ rustPlatform.bindgenHook ];
2024-08-05 14:34:56 +00:00
2024-10-11 16:17:08 +00:00
buildInputs = [ libxcrypt ];
2024-08-05 14:34:56 +00:00
stripAllList = [ "bin" ];
passthru = {
2024-09-04 08:14:40 +00:00
updateScript = nix-update-script { };
tests = {
inherit (nixosTests)
userborn
userborn-mutable-users
userborn-mutable-etc
userborn-immutable-users
userborn-immutable-etc
;
};
};
2024-08-05 14:34:56 +00:00
meta = with lib; {
homepage = "https://github.com/nikstur/userborn";
description = "Declaratively bear (manage) Linux users and groups";
2024-10-11 16:17:32 +00:00
changelog = "https://github.com/nikstur/userborn/blob/${version}/CHANGELOG.md";
2024-08-05 14:34:56 +00:00
license = licenses.mit;
platforms = platforms.unix;
2024-08-05 14:34:56 +00:00
maintainers = with lib.maintainers; [ nikstur ];
mainProgram = "userborn";
};
}