From bbcb91266661c367111127bc7cd4dbc00a11e7bb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Mar 2021 23:20:01 +0100 Subject: [PATCH] assh: set version --- pkgs/tools/networking/assh/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/assh/default.nix b/pkgs/tools/networking/assh/default.nix index 7a7bb0ab5177..7d3c662b368f 100644 --- a/pkgs/tools/networking/assh/default.nix +++ b/pkgs/tools/networking/assh/default.nix @@ -1,4 +1,9 @@ -{ lib, buildGoModule, fetchFromGitHub, openssh, makeWrapper }: +{ lib +, buildGoModule +, fetchFromGitHub +, openssh +, makeWrapper +}: buildGoModule rec { pname = "assh"; @@ -15,6 +20,10 @@ buildGoModule rec { doCheck = false; + preBuild = '' + buildFlagsArray+=("-ldflags" "-s -w -X moul.io/assh/v2/pkg/version.Version=${version}") + ''; + nativeBuildInputs = [ makeWrapper ]; postInstall = ''