mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
31 lines
730 B
Nix
31 lines
730 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "fission";
|
|
version = "1.20.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fission";
|
|
repo = "fission";
|
|
rev = "v${version}";
|
|
hash = "sha256-6g0qJPH4NiA+8VhjvqamVfmb4LdofJ75GOMl/IFN5V4=";
|
|
};
|
|
|
|
vendorHash = "sha256-MzMLatTGEnCgTlj6WYBRLbi6D5eSbA4CvqIXVbcvLCM=";
|
|
|
|
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 ];
|
|
};
|
|
}
|