at 23.11-beta 37 lines 1.0 kB view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, fetchpatch 5}: 6rustPlatform.buildRustPackage rec { 7 pname = "bootspec"; 8 version = "1.0.0"; 9 10 src = fetchFromGitHub { 11 owner = "DeterminateSystems"; 12 repo = pname; 13 rev = "v${version}"; 14 hash = "sha256-5IGSMHeL0eKfl7teDejAckYQjc8aeLwfwIQSzQ8YaAg="; 15 }; 16 17 patches = [ 18 # https://github.com/DeterminateSystems/bootspec/pull/127 19 # Fixes the synthesize tool for aarch64-linux 20 (fetchpatch { 21 name = "aarch64-support.patch"; 22 url = "https://github.com/DeterminateSystems/bootspec/commit/1d0e925f360f0199f13422fb7541225fd162fd4f.patch"; 23 sha256 = "sha256-wU/jWnOqVBrU2swANdXbQfzRpNd/JIS4cxSyCvixZM0="; 24 }) 25 26 ]; 27 28 cargoHash = "sha256-eGSKVHjPnHK7WyGkO5LIjocNGHawahYQR3H5Lgk1C9s="; 29 30 meta = with lib; { 31 description = "Implementation of RFC-0125's datatype and synthesis tooling"; 32 homepage = "https://github.com/DeterminateSystems/bootspec"; 33 license = licenses.mit; 34 maintainers = teams.determinatesystems.members; 35 platforms = platforms.unix; 36 }; 37}