From ab84d867e32cdc5613c56612aff689edba54189d Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 29 Apr 2023 21:51:31 -0400 Subject: [PATCH] gortr: fix version, fix license --- pkgs/servers/gortr/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/gortr/default.nix b/pkgs/servers/gortr/default.nix index 242e20b41503..fb365342bd68 100644 --- a/pkgs/servers/gortr/default.nix +++ b/pkgs/servers/gortr/default.nix @@ -1,4 +1,7 @@ -{ lib, fetchFromGitHub, buildGoModule }: +{ lib +, buildGoModule +, fetchFromGitHub +}: buildGoModule rec { pname = "gortr"; @@ -13,10 +16,16 @@ buildGoModule rec { vendorHash = null; + ldflags = [ + "-s" + "-w" + "-X=main.version=${version}" + ]; + meta = with lib; { description = "The RPKI-to-Router server used at Cloudflare"; homepage = "https://github.com/cloudflare/gortr/"; - license = licenses.gpl3; + license = licenses.bsd3; maintainers = with maintainers; [ ]; }; }