e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
30 lines
730 B
Nix
30 lines
730 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "fission";
|
|
version = "1.20.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fission";
|
|
repo = "fission";
|
|
rev = "v${version}";
|
|
hash = "sha256-6g0qJPH4NiA+8VhjvqamVfmb4LdofJ75GOMl/IFN5V4=";
|
|
};
|
|
|
|
vendorHash = "sha256-MzMLatTGEnCgTlj6WYBRLbi6D5eSbA4CvqIXVbcvLCM=";
|
|
|
|
ldflags = [ "-s" "-w" "-X info.Version=${version}" ];
|
|
|
|
subPackages = [ "cmd/fission-cli" ];
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/fission-cli $out/bin/fission
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "The cli used by end user to interact Fission";
|
|
homepage = "https://fission.io";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ neverbehave ];
|
|
};
|
|
}
|