helmfile: fix sub package

This commit is contained in:
Mario Rodas 2020-06-27 04:20:00 -05:00
parent e4873b913d
commit 117909637c

View File

@ -1,10 +1,8 @@
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }:
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm }:
let version = "0.119.0"; in
buildGoModule {
buildGoModule rec {
pname = "helmfile";
inherit version;
version = "0.119.0";
src = fetchFromGitHub {
owner = "roboll";
@ -13,16 +11,13 @@ buildGoModule {
sha256 = "067hlzp87g36wgxankrmd2nva1v40pa31acq1hh0jxyxp98sfgk1";
};
goPackagePath = "github.com/roboll/helmfile";
vendorSha256 = "11bw10s5wifzw2cy1100hyjv4xv7an7b05lcw6sphwyy56gsp2fy";
nativeBuildInputs = [ makeWrapper ];
buildFlagsArray = ''
-ldflags=
-X main.Version=${version}
'';
subPackages = [ "." ];
buildFlagsArray = [ "-ldflags=-s -w -X github.com/roboll/helmfile/pkg/app/version.Version=${version}" ];
postInstall = ''
wrapProgram $out/bin/helmfile \
@ -36,4 +31,4 @@ buildGoModule {
maintainers = with lib.maintainers; [ pneumaticat yurrriq ];
platforms = lib.platforms.unix;
};
}
}