Skip to content

Commit a41a81b

Browse files
authored
joincap: refactor
- update changelog URL
1 parent 42a57bc commit a41a81b

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
{ lib
2-
, buildGoModule
3-
, fetchFromGitHub
4-
, libpcap
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
libpcap,
56
}:
67

78
buildGoModule rec {
@@ -11,15 +12,13 @@ buildGoModule rec {
1112
src = fetchFromGitHub {
1213
owner = "assafmo";
1314
repo = "joincap";
14-
rev = "v${version}";
15+
rev = "refs/tags/v${version}";
1516
hash = "sha256-HvqtAno26ZSggiXbQpkw5ghxCrmmLb5uDdeSQ2QVeq0=";
1617
};
1718

1819
vendorHash = "sha256-pIu/f7hpSUJG5az7sV9tlXJfIjVT37bTV49kTkR80ek=";
1920

20-
buildInputs = [
21-
libpcap
22-
];
21+
buildInputs = [ libpcap ];
2322

2423
ldflags = [
2524
"-s"
@@ -28,10 +27,10 @@ buildGoModule rec {
2827

2928
meta = with lib; {
3029
description = "Merge multiple pcap files together, gracefully";
31-
mainProgram = "joincap";
3230
homepage = "https://github.com/assafmo/joincap";
33-
changelog = "https://github.com/assafmo/joincap/blob/${version}/CHANGELOG.md";
31+
changelog = "https://github.com/assafmo/joincap/blob/v${version}/CHANGELOG.md";
3432
license = licenses.mit;
3533
maintainers = with maintainers; [ fab ];
34+
mainProgram = "joincap";
3635
};
3736
}

0 commit comments

Comments
 (0)