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
728 B
Nix
Raw Normal View History

2021-03-13 07:45:32 +01:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "fission";
2021-08-08 13:26:27 +02:00
version = "1.14.1";
2021-03-13 07:45:32 +01:00
src = fetchFromGitHub {
owner = "fission";
repo = "fission";
rev = version;
2021-08-08 13:26:27 +02:00
sha256 = "sha256-U/UV5NZXmycDp8+g5XV6P2b+4SutR51rVHdPp9HdPjM=";
2021-03-13 07:45:32 +01:00
};
2021-08-08 13:26:27 +02:00
vendorSha256 = "sha256-1ujJuhK7pm/A1Dd+Wm9dtc65mx9pwLBWMWwEJnbja8s=";
2021-03-13 07:45:32 +01:00
2021-08-26 08:45:51 +02:00
ldflags = [ "-s" "-w" "-X info.Version=${version}" ];
2021-03-13 07:45:32 +01: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 ];
};
}