3
0
Fork 0
forked from mirrors/nixpkgs

nodePackages.wrangler: init

Create a package for the latest version of wrangler, and rename the old
one to wrangler_1. The application will not work before Node.js
v16.13.0, so this is added to the meta.

Added it to the top-level as well.

Signed-off-by: David Houston <houstdav000@gmail.com>
This commit is contained in:
David Houston 2022-09-13 08:38:45 -04:00
parent cb8c505bc3
commit 902e3f83a7
No known key found for this signature in database
GPG key ID: 5960278CE235F821
5 changed files with 3122 additions and 2359 deletions

View file

@ -388,6 +388,7 @@
, "webpack-dev-server" , "webpack-dev-server"
, "copy-webpack-plugin" , "copy-webpack-plugin"
, "webtorrent-cli" , "webtorrent-cli"
, "wrangler"
, "wring" , "wring"
, "write-good" , "write-good"
, "@yaegassy/coc-nginx" , "@yaegassy/coc-nginx"

File diff suppressed because it is too large Load diff

View file

@ -550,6 +550,16 @@ final: prev: {
buildInputs = [ final.node-gyp-build ]; buildInputs = [ final.node-gyp-build ];
}; };
wrangler = prev.wrangler.override (oldAttrs: {
dontNpmInstall = true;
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postInstall = ''
makeWrapper "$out/lib/node_modules/wrangler/bin/wrangler.js" "$out/bin/wrangler" \
--inherit-argv0
'';
meta = oldAttrs.meta // { broken = before "16.13"; };
});
yaml-language-server = prev.yaml-language-server.override { yaml-language-server = prev.yaml-language-server.override {
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ]; nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postInstall = '' postInstall = ''

View file

@ -6,7 +6,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cloudflare"; owner = "cloudflare";
repo = pname; repo = "wrangler";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-HnenF3X/6tvzwlbuOiQAvB76GrdRsqETG+3fp1fx334="; sha256 = "sha256-HnenF3X/6tvzwlbuOiQAvB76GrdRsqETG+3fp1fx334=";
}; };

View file

@ -6011,7 +6011,9 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security; inherit (darwin.apple_sdk.frameworks) Security;
}; };
wrangler = callPackage ../development/tools/wrangler { inherit (nodePackages_latest) wrangler;
wrangler_1 = callPackage ../development/tools/wrangler_1 {
inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices Security; inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices Security;
}; };