{ lib, fetchFromGitHub, rustPlatform, }: rustPlatform.buildRustPackage rec { pname = "wishbone-tool"; version = "0.7.9-git"; src = fetchFromGitHub { owner = "litex-hub"; repo = "wishbone-utils"; rev = "master"; hash = "sha256-ZEJ3hd5G/zziCMqG1yvRzrt3JX6PtJupenq+xM8AKO0="; }; sourceRoot = "${src.name}/wishbone-tool"; cargoHash = "sha256-kWvtZEXtb5bZ7/hd8jsr41UGSDOuDU4tyKWAL0kDoIg="; }