2020-07-11 13:10:48 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, docker }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fn";
|
2022-02-23 17:31:24 +00:00
|
|
|
version = "0.6.14";
|
2020-07-11 13:10:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fnproject";
|
|
|
|
repo = "cli";
|
|
|
|
rev = version;
|
2022-02-23 17:31:24 +00:00
|
|
|
sha256 = "sha256-4gHwf8zOkCKbOPU4Zq1u4h5vn0r1Vi/B++ERxvr/iuk=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|