depot/third_party/nixpkgs/pkgs/by-name/wi/wishbone-tool/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

38 lines
862 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
libusb-compat-0_1,
}:
let
version = "0.7.9";
src = fetchFromGitHub {
owner = "litex-hub";
repo = "wishbone-utils";
rev = "v${version}";
hash = "sha256-Gl0bxHJ8Y0ytYJxToYAR2tVkD4YNMihk+zRpieSvMGE=";
};
in
rustPlatform.buildRustPackage {
pname = "wishbone-tool";
inherit version;
inherit src;
sourceRoot = "${src.name}/wishbone-tool";
useFetchCargoVendor = true;
cargoHash = "sha256-YJEsTGnBUkQ35VOwZQeBbO3RZqglLYm2xecmIS4jiZM=";
buildInputs = [ libusb-compat-0_1 ];
meta = with lib; {
description = "Manipulate a Wishbone device over some sort of bridge";
mainProgram = "wishbone-tool";
homepage = "https://github.com/litex-hub/wishbone-utils";
license = licenses.asl20;
maintainers = with maintainers; [ edef ];
platforms = platforms.linux;
};
}