nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 38 lines 1.1 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitea, 5 fetchpatch, 6}: 7rustPlatform.buildRustPackage rec { 8 pname = "bootspec-lix"; 9 version = "1.0.0"; 10 11 src = fetchFromGitea { 12 domain = "git.lix.systems"; 13 owner = "lix-community"; 14 repo = "bootspec"; 15 rev = "v${version}"; 16 hash = "sha256-5IGSMHeL0eKfl7teDejAckYQjc8aeLwfwIQSzQ8YaAg="; 17 }; 18 19 patches = [ 20 # https://github.com/DeterminateSystems/bootspec/pull/127 21 # Fixes the synthesize tool for aarch64-linux 22 (fetchpatch { 23 name = "aarch64-support.patch"; 24 url = "https://github.com/DeterminateSystems/bootspec/commit/1d0e925f360f0199f13422fb7541225fd162fd4f.patch"; 25 sha256 = "sha256-wU/jWnOqVBrU2swANdXbQfzRpNd/JIS4cxSyCvixZM0="; 26 }) 27 ]; 28 29 cargoHash = "sha256-65jk8UlXZgQoxuwRcGlMnI4e+LpCJuP2TaqK+Kn4GnQ="; 30 31 meta = with lib; { 32 description = "Vendor-neutral implementation of RFC-0125's datatype and synthesis tooling"; 33 homepage = "https://git.lix.systems/lix-community/bootspec"; 34 license = licenses.mit; 35 maintainers = [ lib.maintainers.raitobezarius ]; 36 platforms = platforms.unix; 37 }; 38}