about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorBenjamin Hipple <bhipple@protonmail.com>2020-02-15 23:24:46 -0500
committerJon <jonringer@users.noreply.github.com>2020-02-16 09:35:01 -0800
commitdc851d40519724cdd3252fc6d5c8a87b03302f96 (patch)
tree423f3a40d411acb69ce77c93f2aa337aacfdfa84 /pkgs/development/tools
parentf85a6d959c606d7d1e8e5812215d99d170987290 (diff)
downloadnixlib-dc851d40519724cdd3252fc6d5c8a87b03302f96.tar
nixlib-dc851d40519724cdd3252fc6d5c8a87b03302f96.tar.gz
nixlib-dc851d40519724cdd3252fc6d5c8a87b03302f96.tar.bz2
nixlib-dc851d40519724cdd3252fc6d5c8a87b03302f96.tar.lz
nixlib-dc851d40519724cdd3252fc6d5c8a87b03302f96.tar.xz
nixlib-dc851d40519724cdd3252fc6d5c8a87b03302f96.tar.zst
nixlib-dc851d40519724cdd3252fc6d5c8a87b03302f96.zip
wishbone-utils: 0.2.8 -> 0.6.9
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.
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/misc/wishbone-tool/default.nix19
1 files changed, 12 insertions, 7 deletions
diff --git a/pkgs/development/tools/misc/wishbone-tool/default.nix b/pkgs/development/tools/misc/wishbone-tool/default.nix
index 10de4a8157a6..8c2e27d64507 100644
--- a/pkgs/development/tools/misc/wishbone-tool/default.nix
+++ b/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;