nodejs: esbuild 0.14 does not need override

This commit is contained in:
Wout Mertens 2022-07-08 17:59:28 +02:00
parent 26dce978b1
commit de4d86a495

View File

@ -409,40 +409,7 @@ in
''; '';
}; };
}; };
"add-binary-0.14" = let # Version 0.14 uses optionals to download the correct binary, no override needed
version = "0.14.38";
in {
_condition = satisfiesSemver "~0.14";
ESBUILD_BINARY_PATH = let
esbuild = pkgs.buildGoModule {
pname = "esbuild";
inherit version;
src = pkgs.fetchFromGitHub {
owner = "evanw";
repo = "esbuild";
rev = "v${version}";
sha256 = "sha256-rvMi1oC7qGidvi4zrm9KCMMntu6LJGVOGN6VmU2ivQE=";
};
vendorSha256 = "sha256-QPkBR+FscUc3jOvH7olcGUhM6OW4vxawmNJuRQxPuGs=";
# there is a binary version check when running esbuild that prevents us from running
# a semver compatible binary
postPatch = ''
substituteInPlace cmd/esbuild/main.go --replace \
"hostVersion != esbuildVersion" \
"false"
'';
};
in "${esbuild}/bin/esbuild";
overrideAttrs = old: {
postPatch = ''
substituteInPlace lib/main.js --replace \
"${old.version}" "${version}"
'';
};
};
}; };
fontmanager-redux = { fontmanager-redux = {