nixpkgs/pkgs/development/web/netlify-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
583 B
Nix
Raw Normal View History

2021-10-15 19:48:56 +00:00
{ callPackage, fetchFromGitHub, lib, pkgs }:
let
nodePackages = import ./composition.nix { inherit pkgs; };
sourceInfo = (lib.importJSON ./netlify-cli.json);
in
nodePackages.package.override {
preRebuild = ''
export ESBUILD_BINARY_PATH="${pkgs.esbuild_netlify}/bin/esbuild"
'';
src = fetchFromGitHub {
inherit (sourceInfo) owner repo rev hash;
};
bypassCache = true;
reconstructLock = true;
2021-10-15 19:48:56 +00:00
passthru.tests.test = callPackage ./test.nix { };
meta.maintainers = with lib.maintainers; [ roberth ];
2023-12-08 18:54:54 +00:00
meta.mainProgram = "netlify";
}