nixpkgs/pkgs/development/tools/misc/wishbone-tool/default.nix
Benjamin Hipple eb11feaa0b treewide: change fetchCargoTarball default to opt-out
Changes the default fetcher in the Rust Platform to be the newer
`fetchCargoTarball`, and changes every application using the current default to
instead opt out.

This commit does not change any hashes or cause any rebuilds. Once integrated,
we will start deleting the opt-outs and recomputing hashes.

See #79975 for details.
2020-02-13 22:41:37 -08:00

29 lines
828 B
Nix

{ lib, fetchFromGitHub, rustPlatform, libusb }:
let
version = "0.2.8";
src = fetchFromGitHub {
owner = "xobs";
repo = "wishbone-utils";
rev = "v${version}";
sha256 = "0v6s5yl0y6bd2snf12x6c77rwvqkg6ybi1sm4wr7qdgbwq563nxp";
};
in
rustPlatform.buildRustPackage {
pname = "wishbone-tool";
inherit version;
src = "${src}/wishbone-tool";
# Delete this on next update; see #79975 for details
legacyCargoFetcher = true;
cargoSha256 = "0pj8kf6s1c666p4kc6q1hlvaqm0lm9aqnsx5r034g1y8sxnnyri2";
buildInputs = [ libusb ];
meta = with lib; {
description = "Manipulate a Wishbone device over some sort of bridge";
homepage = "https://github.com/xobs/wishbone-utils#wishbone-tool";
license = licenses.bsd2;
maintainers = with maintainers; [ edef ];
platforms = platforms.linux;
};
}