From d28aef0ba96b625f1c0aa0201f9a469b9eb43a4d Mon Sep 17 00:00:00 2001 From: Tyler Cook <10459406+cilki@users.noreply.github.com> Date: Thu, 17 Apr 2025 17:34:30 -0500 Subject: [PATCH] goldboot: init at 0.0.10 --- pkgs/by-name/go/goldboot/package.nix | 57 ++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 pkgs/by-name/go/goldboot/package.nix diff --git a/pkgs/by-name/go/goldboot/package.nix b/pkgs/by-name/go/goldboot/package.nix new file mode 100644 index 000000000000..badc531c25c1 --- /dev/null +++ b/pkgs/by-name/go/goldboot/package.nix @@ -0,0 +1,57 @@ +{ + fetchFromGitHub, + rustPlatform, + lib, + versionCheckHook, + pkg-config, + zstd, + OVMF, + qemu, + qemu-utils, + openssl, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "goldboot"; + version = "0.0.10"; + + src = fetchFromGitHub { + owner = "fossable"; + repo = "goldboot"; + rev = "goldboot-v${finalAttrs.version}"; + hash = "sha256-O9yhyJZpjQxC0HP43RsOgPMOKp6d23SNhMLiGtmwXzs="; + }; + + useFetchCargoVendor = true; + cargoHash = "sha256-NF0Fj+r6qWcM4VEIm1fzveZuz6MIaG32Z+zBfSMC/t4="; + + buildAndTestSubdir = "goldboot"; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ + zstd + OVMF + qemu + qemu-utils + openssl + ]; + + # Tests require networking, so skip them for now + doCheck = false; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + mainProgram = "goldboot"; + description = "Immutable infrastructure for the desktop"; + homepage = "https://github.com/fossable/goldboot"; + changelog = "https://github.com/fossable/goldboot/releases/tag/goldboot-v${finalAttrs.version}"; + license = lib.licenses.agpl3Plus; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ cilki ]; + }; +})