nixpkgs/pkgs/applications/networking/cluster/fn-cli/default.nix

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

37 lines
661 B
Nix
Raw Normal View History

2022-11-14 02:22:22 +00:00
{ lib, stdenv, buildGoModule, fetchFromGitHub, docker }:
2020-07-11 12:10:48 +00:00
buildGoModule rec {
pname = "fn";
2022-12-13 18:44:48 +00:00
version = "0.6.23";
2020-07-11 12:10:48 +00:00
src = fetchFromGitHub {
owner = "fnproject";
repo = "cli";
rev = version;
2022-12-13 18:44:48 +00:00
hash = "sha256-3g8S3cJ3RC06rvPMyQSKf8L4DkDTZ0Oe+6eh+rwyqg8=";
2020-07-11 12:10:48 +00:00
};
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 ];
};
}