From e9c6d76072075f0df17800a9160e8d448c856404 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Thu, 24 Apr 2025 17:57:51 +0200 Subject: [PATCH] bootspec-lix: init at 1.0.0 A fork of DeterminateSystems/bootspec moved in a vendor-neutral location. Multiple attempts were done to move into NixOS/bootspec to no avail. I am not interested into working towards that goal under the current leadership structures. Change-Id: I06cbc2272003a1b813ab3a50ebeb9acf90e72f10 Signed-off-by: Raito Bezarius --- pkgs/by-name/bo/bootspec-lix/package.nix | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/bo/bootspec-lix/package.nix diff --git a/pkgs/by-name/bo/bootspec-lix/package.nix b/pkgs/by-name/bo/bootspec-lix/package.nix new file mode 100644 index 000000000000..411c3e0f1e85 --- /dev/null +++ b/pkgs/by-name/bo/bootspec-lix/package.nix @@ -0,0 +1,39 @@ +{ + lib, + rustPlatform, + fetchFromGitea, + fetchpatch, +}: +rustPlatform.buildRustPackage rec { + pname = "bootspec-lix"; + version = "1.0.0"; + + src = fetchFromGitea { + domain = "git.lix.systems"; + owner = "lix-community"; + repo = "bootspec"; + rev = "v${version}"; + hash = "sha256-5IGSMHeL0eKfl7teDejAckYQjc8aeLwfwIQSzQ8YaAg="; + }; + + patches = [ + # https://github.com/DeterminateSystems/bootspec/pull/127 + # Fixes the synthesize tool for aarch64-linux + (fetchpatch { + name = "aarch64-support.patch"; + url = "https://github.com/DeterminateSystems/bootspec/commit/1d0e925f360f0199f13422fb7541225fd162fd4f.patch"; + sha256 = "sha256-wU/jWnOqVBrU2swANdXbQfzRpNd/JIS4cxSyCvixZM0="; + }) + ]; + + useFetchCargoVendor = true; + cargoHash = "sha256-65jk8UlXZgQoxuwRcGlMnI4e+LpCJuP2TaqK+Kn4GnQ="; + + meta = with lib; { + description = "Vendor-neutral implementation of RFC-0125's datatype and synthesis tooling"; + homepage = "https://git.lix.systems/lix-community/bootspec"; + license = licenses.mit; + maintainers = [ lib.maintainers.raitobezarius ]; + platforms = platforms.unix; + }; +}