userborn: 0.2.0 -> 0.3.0 (#347952)

This commit is contained in:
Jörg Thalheim 2024-10-12 11:17:23 +02:00 committed by GitHub
commit 07f12edf38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,36 +2,29 @@
lib,
rustPlatform,
fetchFromGitHub,
makeBinaryWrapper,
mkpasswd,
libxcrypt,
nixosTests,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "userborn";
version = "0.2.0";
version = "0.3.0";
src = fetchFromGitHub {
owner = "nikstur";
repo = "userborn";
rev = version;
hash = "sha256-LEKdgmw1inBOi0sriG8laCrtx0ycqR5ftdnmszadx3U=";
hash = "sha256-ABePye1zuGDH74BL6AP05rR9eBOYu1SoVpd2TcZQMW8=";
};
sourceRoot = "${src.name}/rust/userborn";
cargoHash = "sha256-Pjzu6db2WomNsC+jNK1fr1u7koZwUvWPIY5JHMo1gkA=";
cargoHash = "sha256-/S2rkZyXHN5NiW9TFhKguqtf/udFcDOTfV2jYRMV14s=";
nativeBuildInputs = [ makeBinaryWrapper ];
nativeBuildInputs = [ rustPlatform.bindgenHook ];
buildInputs = [ mkpasswd ];
nativeCheckInputs = [ mkpasswd ];
postInstall = ''
wrapProgram $out/bin/userborn --prefix PATH : ${lib.makeBinPath [ mkpasswd ]}
'';
buildInputs = [ libxcrypt ];
stripAllList = [ "bin" ];
@ -51,8 +44,9 @@ rustPlatform.buildRustPackage rec {
meta = with lib; {
homepage = "https://github.com/nikstur/userborn";
description = "Declaratively bear (manage) Linux users and groups";
changelog = "https://github.com/nikstur/userborn/blob/${version}/CHANGELOG.md";
license = licenses.mit;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with lib.maintainers; [ nikstur ];
mainProgram = "userborn";
};