2021-03-23 19:22:30 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fission";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.20.2";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fission";
|
|
|
|
repo = "fission";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-DkSilNn98m7E9qTRpf+g2cmo3SHeJkW4eJ5T6XQM3S8=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
vendorHash = "sha256-IChr8jC21yI5zOkHF2v9lQoqXT95FSMXJdWj7HqikB4=";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X info.Version=${version}" ];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/fission-cli" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/fission-cli $out/bin/fission
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Cli used by end user to interact Fission";
|
2021-03-23 19:22:30 +00:00
|
|
|
homepage = "https://fission.io";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ neverbehave ];
|
|
|
|
};
|
|
|
|
}
|