nixpkgs-suyu/pkgs/applications/networking/cluster/fn-cli/default.nix
2021-06-16 13:15:52 -07:00

36 lines
654 B
Nix

{ lib, buildGoModule, fetchFromGitHub, docker }:
buildGoModule rec {
pname = "fn";
version = "0.6.7";
src = fetchFromGitHub {
owner = "fnproject";
repo = "cli";
rev = version;
sha256 = "sha256-50tPR+x3U4XJB6lthEiZjOy2pD8LprSE41ZpH2Px8JY=";
};
vendorSha256 = null;
subPackages = ["."];
buildInputs = [
docker
];
preBuild = ''
export HOME=$TMPDIR
'';
postInstall = ''
mv $out/bin/cli $out/bin/fn
'';
meta = with lib; {
description = "Command-line tool for the fn project";
homepage = "https://fnproject.io";
license = licenses.asl20;
maintainers = [ maintainers.c4605 ];
};
}