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:
parent
cb8c505bc3
commit
902e3f83a7
5 changed files with 3122 additions and 2359 deletions
|
@ -388,6 +388,7 @@
|
|||
, "webpack-dev-server"
|
||||
, "copy-webpack-plugin"
|
||||
, "webtorrent-cli"
|
||||
, "wrangler"
|
||||
, "wring"
|
||||
, "write-good"
|
||||
, "@yaegassy/coc-nginx"
|
||||
|
|
5464
pkgs/development/node-packages/node-packages.nix
generated
5464
pkgs/development/node-packages/node-packages.nix
generated
File diff suppressed because it is too large
Load diff
|
@ -550,6 +550,16 @@ final: prev: {
|
|||
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 {
|
||||
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
||||
postInstall = ''
|
||||
|
|
|
@ -6,7 +6,7 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cloudflare";
|
||||
repo = pname;
|
||||
repo = "wrangler";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-HnenF3X/6tvzwlbuOiQAvB76GrdRsqETG+3fp1fx334=";
|
||||
};
|
|
@ -6011,7 +6011,9 @@ with pkgs;
|
|||
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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue