nixpkgs/pkgs/applications/networking/cluster/kubeless/default.nix

39 lines
954 B
Nix
Raw Normal View History

2020-07-02 15:07:31 +01:00
{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:
2019-08-16 14:32:52 +01:00
2019-09-21 10:22:00 +01:00
buildGoPackage rec {
2019-08-16 14:32:52 +01:00
pname = "kubeless";
2020-07-02 14:06:20 +01:00
version = "1.0.7";
2019-08-16 14:32:52 +01:00
src = fetchFromGitHub {
owner = "kubeless";
repo = "kubeless";
rev = "v${version}";
2020-07-02 14:06:20 +01:00
sha256 = "0x2hydywnnlh6arzz71p7gg9yzq5z2y2lppn1jszvkbgh11kkqfr";
2019-08-16 14:32:52 +01:00
};
2019-09-21 10:22:00 +01:00
goPackagePath = "github.com/kubeless/kubeless";
2019-08-16 14:32:52 +01:00
2020-07-02 15:07:31 +01:00
nativeBuildInputs = [ installShellFiles ];
2019-08-16 14:32:52 +01:00
subPackages = [ "cmd/kubeless" ];
buildFlagsArray = ''
2020-07-02 15:07:31 +01:00
-ldflags=-s -w -X github.com/kubeless/kubeless/pkg/version.Version=${version}
'';
postInstall = ''
for shell in bash; do
$out/bin/kubeless completion $shell > kubeless.$shell
installShellCompletion kubeless.$shell
done
2019-08-16 14:32:52 +01:00
'';
meta = with stdenv.lib; {
homepage = "https://kubeless.io";
description = "The Kubernetes Native Serverless Framework";
license = licenses.asl20;
2020-01-22 21:12:43 +00:00
maintainers = with maintainers; [];
2019-08-16 14:32:52 +01:00
platforms = platforms.unix;
};
}