joincap: refactor

- update changelog URL
This commit is contained in:
Fabian Affolter 2024-11-15 09:34:19 +01:00 committed by GitHub
parent 42a57bc240
commit a41a81b3fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,8 @@
{ lib
, buildGoModule
, fetchFromGitHub
, libpcap
{
lib,
buildGoModule,
fetchFromGitHub,
libpcap,
}:
buildGoModule rec {
@ -11,15 +12,13 @@ buildGoModule rec {
src = fetchFromGitHub {
owner = "assafmo";
repo = "joincap";
rev = "v${version}";
rev = "refs/tags/v${version}";
hash = "sha256-HvqtAno26ZSggiXbQpkw5ghxCrmmLb5uDdeSQ2QVeq0=";
};
vendorHash = "sha256-pIu/f7hpSUJG5az7sV9tlXJfIjVT37bTV49kTkR80ek=";
buildInputs = [
libpcap
];
buildInputs = [ libpcap ];
ldflags = [
"-s"
@ -28,10 +27,10 @@ buildGoModule rec {
meta = with lib; {
description = "Merge multiple pcap files together, gracefully";
mainProgram = "joincap";
homepage = "https://github.com/assafmo/joincap";
changelog = "https://github.com/assafmo/joincap/blob/${version}/CHANGELOG.md";
changelog = "https://github.com/assafmo/joincap/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "joincap";
};
}