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 rec {
buildGoModule {
pname = "helmfile"; pname = "helmfile";
inherit version; version = "0.119.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "roboll"; owner = "roboll";
@ -13,16 +11,13 @@ buildGoModule {
sha256 = "067hlzp87g36wgxankrmd2nva1v40pa31acq1hh0jxyxp98sfgk1"; sha256 = "067hlzp87g36wgxankrmd2nva1v40pa31acq1hh0jxyxp98sfgk1";
}; };
goPackagePath = "github.com/roboll/helmfile";
vendorSha256 = "11bw10s5wifzw2cy1100hyjv4xv7an7b05lcw6sphwyy56gsp2fy"; vendorSha256 = "11bw10s5wifzw2cy1100hyjv4xv7an7b05lcw6sphwyy56gsp2fy";
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildFlagsArray = '' subPackages = [ "." ];
-ldflags=
-X main.Version=${version} buildFlagsArray = [ "-ldflags=-s -w -X github.com/roboll/helmfile/pkg/app/version.Version=${version}" ];
'';
postInstall = '' postInstall = ''
wrapProgram $out/bin/helmfile \ wrapProgram $out/bin/helmfile \