assh: set version
This commit is contained in:
parent
4c817c73ac
commit
bbcb912666
|
@ -1,4 +1,9 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub, openssh, makeWrapper }:
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, openssh
|
||||||
|
, makeWrapper
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "assh";
|
pname = "assh";
|
||||||
|
@ -15,6 +20,10 @@ buildGoModule rec {
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
buildFlagsArray+=("-ldflags" "-s -w -X moul.io/assh/v2/pkg/version.Version=${version}")
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
Loading…
Reference in a new issue