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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
730 B
Nix
Raw Normal View History

2021-03-13 06:45:32 +00:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "fission";
2023-12-15 00:12:20 +00:00
version = "1.20.0";
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}";
2023-12-15 00:12:20 +00:00
hash = "sha256-6g0qJPH4NiA+8VhjvqamVfmb4LdofJ75GOMl/IFN5V4=";
2021-03-13 06:45:32 +00:00
};
2023-12-15 00:12:20 +00:00
vendorHash = "sha256-MzMLatTGEnCgTlj6WYBRLbi6D5eSbA4CvqIXVbcvLCM=";
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 ];
};
}