gobgpd: update rev

This commit is contained in:
Fabian Affolter 2023-01-07 23:07:32 +01:00 committed by GitHub
parent 013b1f79bf
commit 389fce69cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,7 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "gobgpd";
@ -7,8 +10,8 @@ buildGoModule rec {
src = fetchFromGitHub {
owner = "osrg";
repo = "gobgp";
rev = "v${version}";
sha256 = "sha256-aVvzbWMh/r1k3AKDHipWkwEevYPj8Xfix8PfIMYXiTM=";
rev = "refs/tags/v${version}";
hash = "sha256-aVvzbWMh/r1k3AKDHipWkwEevYPj8Xfix8PfIMYXiTM=";
};
vendorHash = "sha256-9Vi8qrcFC2SazcGVgAf1vbKvxd8rTMgye63wSCaFonk=";
@ -18,10 +21,14 @@ buildGoModule rec {
'';
ldflags = [
"-s" "-w" "-extldflags '-static'"
"-s"
"-w"
"-extldflags '-static'"
];
subPackages = [ "cmd/gobgpd" ];
subPackages = [
"cmd/gobgpd"
];
meta = with lib; {
description = "BGP implemented in Go";