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.

38 lines
691 B
Nix
Raw Normal View History

2022-11-14 02:22:22 +00:00
{ lib, stdenv, buildGoModule, fetchFromGitHub, docker }:
2020-07-11 13:10:48 +01:00
buildGoModule rec {
pname = "fn";
2022-12-03 20:32:18 +00:00
version = "0.6.22";
2020-07-11 13:10:48 +01:00
src = fetchFromGitHub {
owner = "fnproject";
repo = "cli";
rev = version;
2022-12-03 20:32:18 +00:00
hash = "sha256-FXgDCZcHcKvgkV1YFjMKl+5oJ5H1DV/Gj9am5VJuIjw=";
2020-07-11 13:10:48 +01: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 ];
2022-11-14 02:22:22 +00:00
broken = stdenv.isDarwin;
2020-07-11 13:10:48 +01:00
};
}