571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
675 B
Nix
38 lines
675 B
Nix
{ lib, buildGoModule, fetchFromGitHub, docker }:
|
|
|
|
buildGoModule rec {
|
|
pname = "fn";
|
|
version = "0.6.35";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fnproject";
|
|
repo = "cli";
|
|
rev = version;
|
|
hash = "sha256-ohT4h9w6gaOk6C3O8eUBcmXHRSzL2mcRO8RnNY8htso=";
|
|
};
|
|
|
|
vendorHash = 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";
|
|
mainProgram = "fn";
|
|
homepage = "https://fnproject.io";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.c4605 ];
|
|
};
|
|
}
|