nixpkgs/pkgs/development/tools/fission/default.nix

31 lines
737 B
Nix
Raw Normal View History

2021-03-13 06:45:32 +00:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "fission";
2021-06-23 03:51:27 +00:00
version = "1.13.1";
2021-03-13 06:45:32 +00:00
src = fetchFromGitHub {
owner = "fission";
repo = "fission";
rev = version;
2021-06-23 03:51:27 +00:00
sha256 = "sha256-ayVEU2Dlqun8KLP+KeI0uU4p9N4aaYLZ/IHqfA2PGrI=";
2021-03-13 06:45:32 +00:00
};
2021-06-18 04:34:09 +00:00
vendorSha256 = "sha256-V3/IFCbW3wXfNiFzucLeyFDc6SA2nE+NwO0sNEBmIYg=";
2021-03-13 06:45:32 +00:00
buildFlagsArray = "-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 ];
};
}