mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
netlify-cli: Fix by using explicit esbuild fork package
This commit is contained in:
parent
e8c67529a5
commit
5c339ff41e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user