Merge pull request #137102 from welteki/faas-cli
This commit is contained in:
commit
a9efc15c16
3 changed files with 54 additions and 0 deletions
|
@ -12060,6 +12060,16 @@
|
|||
githubId = 9002575;
|
||||
name = "Weihua Lu";
|
||||
};
|
||||
welteki = {
|
||||
email = "welteki@pm.me";
|
||||
github = "welteki";
|
||||
githubId = 16267532;
|
||||
name = "Han Verstraete";
|
||||
keys = [{
|
||||
longkeyid = "rsa4096/0x11F7BAEA856743FF";
|
||||
fingerprint = "2145 955E 3F5E 0C95 3458 41B5 11F7 BAEA 8567 43FF";
|
||||
}];
|
||||
};
|
||||
wheelsandmetal = {
|
||||
email = "jakob@schmutz.co.uk";
|
||||
github = "wheelsandmetal";
|
||||
|
|
42
pkgs/development/tools/faas-cli/default.nix
Normal file
42
pkgs/development/tools/faas-cli/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
||||
let
|
||||
faasPlatform = platform:
|
||||
let cpuName = platform.parsed.cpu.name; in {
|
||||
"aarch64" = "arm64";
|
||||
"armv7l" = "armhf";
|
||||
}.${cpuName} or cpuName;
|
||||
in
|
||||
buildGoModule rec {
|
||||
pname = "faas-cli";
|
||||
# When updating version change rev.
|
||||
version = "0.13.13";
|
||||
rev = "72816d486cf76c3089b915dfb0b66b85cf096634";
|
||||
platform = faasPlatform stdenv.targetPlatform;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openfaas";
|
||||
repo = "faas-cli";
|
||||
rev = version;
|
||||
sha256 = "0mmrakyy2qmkldld7pxf5bx6whdadq2r52b68f9p9z7yqrdimix8";
|
||||
};
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
|
||||
vendorSha256 = null;
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
ldflags = [
|
||||
"-s" "-w"
|
||||
"-X github.com/openfaas/faas-cli/version.GitCommit=${rev}"
|
||||
"-X github.com/openfaas/faas-cli/version.Version=${version}"
|
||||
"-X github.com/openfaas/faas-cli/commands.Platform=${platform}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/openfaas/faas-cli";
|
||||
description = "Official CLI for OpenFaaS ";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ welteki ];
|
||||
};
|
||||
}
|
|
@ -14301,6 +14301,8 @@ with pkgs;
|
|||
|
||||
ezquake = callPackage ../games/ezquake { };
|
||||
|
||||
faas-cli = callPackage ../development/tools/faas-cli { };
|
||||
|
||||
findbugs = callPackage ../development/tools/analysis/findbugs { };
|
||||
|
||||
findnewest = callPackage ../development/tools/misc/findnewest { };
|
||||
|
|
Loading…
Reference in a new issue