helmfile: fix build on darwin
This commit is contained in:
parent
7a84da8ac8
commit
622494d85d
|
@ -1,10 +1,8 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }:
|
{ stdenv, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm, Security }:
|
||||||
|
|
||||||
let version = "0.102.0"; in
|
buildGoModule rec {
|
||||||
|
|
||||||
buildGoModule {
|
|
||||||
pname = "helmfile";
|
pname = "helmfile";
|
||||||
inherit version;
|
version = "0.102.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "roboll";
|
owner = "roboll";
|
||||||
|
@ -13,12 +11,12 @@ buildGoModule {
|
||||||
sha256 = "0v7mhsnhswiqd62wrmkcpzsg9nfi6wvkh9danngs5rqjiz1zffhy";
|
sha256 = "0v7mhsnhswiqd62wrmkcpzsg9nfi6wvkh9danngs5rqjiz1zffhy";
|
||||||
};
|
};
|
||||||
|
|
||||||
goPackagePath = "github.com/roboll/helmfile";
|
|
||||||
|
|
||||||
modSha256 = "0s7j7jbgr8gdc0s9dnl6zjwkpywqj05xyb7mkcank54kgrz0g5vq";
|
modSha256 = "0s7j7jbgr8gdc0s9dnl6zjwkpywqj05xyb7mkcank54kgrz0g5vq";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
buildFlagsArray = ''
|
buildFlagsArray = ''
|
||||||
-ldflags=
|
-ldflags=
|
||||||
-X main.Version=${version}
|
-X main.Version=${version}
|
||||||
|
@ -26,14 +24,14 @@ buildGoModule {
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/helmfile \
|
wrapProgram $out/bin/helmfile \
|
||||||
--prefix PATH : ${lib.makeBinPath [ kubernetes-helm ]}
|
--prefix PATH : ${stdenv.lib.makeBinPath [ kubernetes-helm ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "Deploy Kubernetes Helm charts";
|
description = "Deploy Kubernetes Helm charts";
|
||||||
homepage = "https://github.com/roboll/helmfile";
|
homepage = "https://github.com/roboll/helmfile";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ pneumaticat yurrriq ];
|
maintainers = with maintainers; [ pneumaticat yurrriq ];
|
||||||
platforms = lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -25323,7 +25323,9 @@ in
|
||||||
stdenv = gcc8Stdenv;
|
stdenv = gcc8Stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
helmfile = callPackage ../applications/networking/cluster/helmfile { };
|
helmfile = callPackage ../applications/networking/cluster/helmfile {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
};
|
||||||
|
|
||||||
heptio-ark = callPackage ../applications/networking/cluster/heptio-ark { };
|
heptio-ark = callPackage ../applications/networking/cluster/heptio-ark { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue