Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 22 lines 661 B view raw
1{ lib, fetchFromGitHub, rustPlatform }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "cargo-xbuild"; 5 version = "0.6.5"; 6 7 src = fetchFromGitHub { 8 owner = "rust-osdev"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-bnceN47OFGlxs3ibcKoZFjoTgXRQxA2ZqxnthJ/fsqE="; 12 }; 13 14 cargoSha256 = "sha256-qMPJC61ZVW9olMgNnGrvcQ/je4se4J5gOVoaOpNMUo8="; 15 16 meta = with lib; { 17 description = "Automatically cross-compiles the sysroot crates core, compiler_builtins, and alloc"; 18 homepage = "https://github.com/rust-osdev/cargo-xbuild"; 19 license = with licenses; [ mit asl20 ]; 20 maintainers = with maintainers; [ johntitor xrelkd ]; 21 }; 22}