nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 33 lines 903 B view raw
1{ lib, fetchFromGitHub, rustPlatform, libusb-compat-0_1 }: 2 3let 4 version = "0.6.9"; 5 src = fetchFromGitHub { 6 owner = "litex-hub"; 7 repo = "wishbone-utils"; 8 rev = "v${version}"; 9 sha256 = "0gq359ybxnqvcp93cn154bs9kwlai62gnm71yvl2nhzjdlcr3fhp"; 10 }; 11in 12rustPlatform.buildRustPackage { 13 pname = "wishbone-tool"; 14 inherit version; 15 16 src = "${src}/wishbone-tool"; 17 18 # N.B. The cargo vendor consistency checker searches in "source" for lockfile 19 cargoDepsHook = '' 20 ln -s wishbone-tool source 21 ''; 22 cargoSha256 = "1b12wpmzv7wxidc4hd8hmp8iwqhqlycxh8bdv3rf701sqsazkc5x"; 23 24 buildInputs = [ libusb-compat-0_1 ]; 25 26 meta = with lib; { 27 description = "Manipulate a Wishbone device over some sort of bridge"; 28 homepage = "https://github.com/litex-hub/wishbone-utils"; 29 license = licenses.bsd2; 30 maintainers = with maintainers; [ edef ]; 31 platforms = platforms.linux; 32 }; 33}