2021-10-17 09:34:42 +00:00
|
|
|
{ callPackage, fetchFromGitHub, lib, pkgs }:
|
|
|
|
let
|
|
|
|
nodePackages = import ./composition.nix { inherit pkgs; };
|
2022-11-27 09:42:12 +00:00
|
|
|
sourceInfo = (lib.importJSON ./netlify-cli.json);
|
2021-10-17 09:34:42 +00:00
|
|
|
in
|
|
|
|
nodePackages.package.override {
|
|
|
|
preRebuild = ''
|
|
|
|
export ESBUILD_BINARY_PATH="${pkgs.esbuild_netlify}/bin/esbuild"
|
|
|
|
'';
|
2022-11-27 09:42:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit (sourceInfo) owner repo rev sha256;
|
|
|
|
};
|
2021-10-17 09:34:42 +00:00
|
|
|
bypassCache = true;
|
|
|
|
reconstructLock = true;
|
|
|
|
passthru.tests.test = callPackage ./test.nix { };
|
|
|
|
meta.maintainers = with lib.maintainers; [ roberth ];
|
|
|
|
}
|