Skip to content

Commit

Permalink
wishbone-utils: 0.2.8 -> 0.6.9
Browse files Browse the repository at this point in the history
The upstreeam repository has moved its URL here:
https://github.com/xobs/wishbone-utils

This also contains some cleanup to make the cargo tarball checker find the cargo
lockfile in the source directory; see #79975 for details.
  • Loading branch information
bhipple authored and jonringer committed Feb 16, 2020
1 parent f85a6d9 commit dc851d4
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions pkgs/development/tools/misc/wishbone-tool/default.nix
@@ -1,26 +1,31 @@
{ lib, fetchFromGitHub, rustPlatform, libusb }:

let
version = "0.2.8";
version = "0.6.9";
src = fetchFromGitHub {
owner = "xobs";
owner = "litex-hub";
repo = "wishbone-utils";
rev = "v${version}";
sha256 = "0v6s5yl0y6bd2snf12x6c77rwvqkg6ybi1sm4wr7qdgbwq563nxp";
sha256 = "0gq359ybxnqvcp93cn154bs9kwlai62gnm71yvl2nhzjdlcr3fhp";
};
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";
# N.B. The cargo vendor consistency checker searches in "source" for lockfile
cargoDepsHook = ''
ln -s wishbone-tool source
'';
cargoSha256 = "0d5kcwy0cgxqfxf2xysw65ng84q4knhp4fgvh6dwqhf0nsca9gvs";

buildInputs = [ libusb ];

meta = with lib; {
description = "Manipulate a Wishbone device over some sort of bridge";
homepage = "https://github.com/xobs/wishbone-utils#wishbone-tool";
homepage = "https://github.com/litex-hub/wishbone-utils";
license = licenses.bsd2;
maintainers = with maintainers; [ edef ];
platforms = platforms.linux;
Expand Down

0 comments on commit dc851d4

Please sign in to comment.