mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
31 lines
730 B
Nix
31 lines
730 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "fission";
|
|
version = "1.19.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fission";
|
|
repo = "fission";
|
|
rev = "v${version}";
|
|
hash = "sha256-Ui7HGiWjzbhEOLuxC3TkFqDwwi3YsLMuxhZsPrJzPN0=";
|
|
};
|
|
|
|
vendorHash = "sha256-XQd5jTZ37DhvQq7x1OyhIb1uoMv5Y7Ayv4CX33BCLBE=";
|
|
|
|
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 ];
|
|
};
|
|
}
|