Merge pull request #117067 from fabaff/version-assh

assh: set version
This commit is contained in:
Sandro 2021-03-21 00:48:33 +01:00 committed by GitHub
commit df4a9849fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = ''