mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
37 lines
661 B
Nix
37 lines
661 B
Nix
{ lib, stdenv, buildGoModule, fetchFromGitHub, docker }:
|
|
|
|
buildGoModule rec {
|
|
pname = "fn";
|
|
version = "0.6.23";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fnproject";
|
|
repo = "cli";
|
|
rev = version;
|
|
hash = "sha256-3g8S3cJ3RC06rvPMyQSKf8L4DkDTZ0Oe+6eh+rwyqg8=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|