git.iko.soy/typeable/nixpkgs
on master help sign in
bandwhich: patch dependency to avoid panics

Panic messages rendered the output unreadable, these panics came from a bug in the linked-hash-map dependency. The patch file is huge because Cargo.lock format changed, but the only thing I ran was: cargo update -p linked-hash-map

commit8798aaa22f54ce8007488cec99e8692bd906f4b1 authorAntoine Martin <antoine@alarsyo.net> dateThu 26 Aug 2021, 16:49 (5 years ago) parent180d3bd
1 file changed+9−1
pkgs/tools/networking/bandwhich/default.nix+9−1
pkgs/tools/networking/bandwhich/default.nix+9−1
@@ -11,13 +11,21 @@ rustPlatform.buildRustPackage rec {
1111 sha256 = "014blvrv0kk4gzga86mbk7gd5dl1szajfi972da3lrfznck1w24n";
1212 };
1313
14− cargoSha256 = "119szaighki565w28la6qg25s3cv8wviqin9f7f9w8x2rif3ipb3";
14+ cargoSha256 = "sha256-Vrd5DIfhUSb3BONaUG8RypmVF+HWrlM0TodlWjOLa/c=";
1515
1616 buildInputs = lib.optional stdenv.isDarwin Security;
1717
1818 # 10 passed; 47 failed https://hydra.nixos.org/build/148943783/nixlog/1
1919 doCheck = !stdenv.isDarwin;
2020
21+ # FIXME: remove when the linked-hash-map dependency is bumped upstream
22+ cargoPatches = [
23+ (fetchpatch {
24+ url = "https://github.com/imsnif/bandwhich/pull/222/commits/be06905de2c4fb91afc22d50bf3cfe5a1e8003f5.patch";
25+ sha256 = "sha256-FyZ7jUXK7ebXq7q/lvRSe7YdPnpYWKZE3WrSKLMjJeA=";
26+ })
27+ ];
28+
2129 meta = with lib; {
2230 description = "A CLI utility for displaying current network utilization";
2331 longDescription = ''