Merge pull request #191069 from houstdav000/package/nodePackages.wrangler

nodePackages.wrangler: init
This commit is contained in:
Domen Kožar 2022-09-14 11:04:14 +01:00 committed by GitHub
commit 842e2c3e95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3122 additions and 2359 deletions

View File

@ -388,6 +388,7 @@
, "webpack-dev-server"
, "copy-webpack-plugin"
, "webtorrent-cli"
, "wrangler"
, "wring"
, "write-good"
, "@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 ];
};
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 = ''

View File

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

View File

@ -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;
};