Skip to content

Commit 8149ab1

Browse files
committed
bandwhich: 0.17.0 -> 0.18.1
ChangeLogs: * https://github.com/imsnif/bandwhich/releases/tag/0.18.1 * https://github.com/imsnif/bandwhich/releases/tag/0.18.0 Also applied a fix[1] for rDNS support which broke with `systemd-v246` because the `resolv-conf` crate didn't support the `options trust_ad`-declaration in systemd's `/etc/resolv.conf`[2]. [1] imsnif/bandwhich#184 [2] imsnif/bandwhich#166 (comment)
1 parent 2511a36 commit 8149ab1

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

pkgs/tools/networking/bandwhich/default.nix

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
1-
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
1+
{ stdenv, fetchFromGitHub, rustPlatform, Security, fetchpatch }:
22

33
rustPlatform.buildRustPackage rec {
44
pname = "bandwhich";
5-
version = "0.17.0";
5+
version = "0.18.1";
66

77
src = fetchFromGitHub {
88
owner = "imsnif";
99
repo = pname;
1010
rev = version;
11-
sha256 = "0fhy3zys41bkpjmvhkxf413004hvv2kngcgf4819mw22w14zfvgr";
11+
sha256 = "0qzmkhrg7pqgblmva7xcww6zc4rryba6kkfkhj05mvd31z3c1rz8";
1212
};
1313

14-
cargoSha256 = "015ff049xb699gig0cwr5i7n8hgw1316dkdpnqd4843h54x7bp5y";
14+
cargoSha256 = "0iakw42nip0vxq50jjk73r0xl7xp426szb091ap4isad3zxq6saj";
15+
cargoPatches = [
16+
# Fixes rDNS support for systems using `systemd-networkd` from v246.
17+
# See https://github.com/imsnif/bandwhich/pull/184 for context
18+
(fetchpatch {
19+
url = "https://github.com/imsnif/bandwhich/commit/19e485a1ce9f749c121d235147e3117cc847379e.patch";
20+
sha256 = "03hg73gwlfq0l36k3aq7cfak3js7j05ssfpdbfiiwqq7lynm83jr";
21+
})
22+
(fetchpatch {
23+
url = "https://github.com/imsnif/bandwhich/commit/35f03b716832fba9a735628d1c728d3e305f75c8.patch";
24+
sha256 = "1bv837wc1dgg26s640f3lfya28ypnjs0675dykzxxxv5y9ns58l3";
25+
})
26+
];
1527

1628
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
1729

0 commit comments

Comments
 (0)