2020-05-03 17:38:23 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, libusb-compat-0_1 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "0.7.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "litex-hub";
|
|
|
|
repo = "wishbone-utils";
|
|
|
|
rev = "v${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-Gl0bxHJ8Y0ytYJxToYAR2tVkD4YNMihk+zRpieSvMGE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "wishbone-tool";
|
|
|
|
inherit version;
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
inherit src;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
sourceRoot = "${src.name}/wishbone-tool";
|
|
|
|
|
|
|
|
cargoHash = "sha256-wOw3v47AekJUW+8dpHVysheA+42HwEahn/hriYF7CfA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
buildInputs = [ libusb-compat-0_1 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Manipulate a Wishbone device over some sort of bridge";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "wishbone-tool";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/litex-hub/wishbone-utils";
|
2024-07-01 15:47:52 +00:00
|
|
|
license = licenses.asl20;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ edef ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|