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

31 lines
730 B
Nix
Raw Normal View History

2021-03-13 06:45:32 +00:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "fission";
2024-01-22 21:08:07 +00:00
version = "1.20.1";
2021-03-13 06:45:32 +00:00
src = fetchFromGitHub {
owner = "fission";
repo = "fission";
2023-07-04 05:15:45 +00:00
rev = "v${version}";
2024-01-22 21:08:07 +00:00
hash = "sha256-RT4hBr7qxhhJM1REJFIE9En1Vu3ACvXav242PBYz8IQ=";
2021-03-13 06:45:32 +00:00
};
2024-01-22 21:08:07 +00:00
vendorHash = "sha256-hZmQxG4cw1Len3ZyGhWVTXB8N9fDRkgNDyF18/8dKuo=";
2021-03-13 06:45:32 +00:00
2021-08-26 06:45:51 +00:00
ldflags = [ "-s" "-w" "-X info.Version=${version}" ];
2021-03-13 06:45:32 +00:00
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 ];
};
}