netlify-cli: Fix by using explicit esbuild fork package

This commit is contained in:
Robert Hensing 2021-10-15 01:27:03 +02:00
parent e8c67529a5
commit 5c339ff41e

View File

@ -1,6 +1,7 @@
{ pkgs, nodejs, stdenv, applyPatches, fetchFromGitHub, fetchpatch, fetchurl }:
let
inherit (pkgs) lib;
since = (version: pkgs.lib.versionAtLeast nodejs.version version);
before = (version: pkgs.lib.versionOlder nodejs.version version);
super = import ./composition.nix {
@ -319,23 +320,11 @@ let
};
netlify-cli =
let
esbuild = pkgs.esbuild.overrideAttrs (old: rec {
version = "0.13.6";
src = fetchFromGitHub {
owner = "netlify";
repo = "esbuild";
rev = "v${version}";
sha256 = "0asjmqfzdrpfx2hd5hkac1swp52qknyqavsm59j8xr4c1ixhc6n9";
};
});
in
super.netlify-cli.override {
preRebuild = ''
export ESBUILD_BINARY_PATH="${esbuild}/bin/esbuild"
export ESBUILD_BINARY_PATH="${pkgs.esbuild_netlify}/bin/esbuild"
'';
meta.maintainers = with lib.maintainers; [ roberth ];
};
ssb-server = super.ssb-server.override {