···6 inherit pkgs nodejs;
7 inherit (pkgs.stdenv.hostPlatform) system;
8 };
000000000000009in
10with self; with elmLib; {
11 inherit (nodePkgs) elm-live elm-upgrade elm-xref elm-analyse elm-git-install;
···22 };
23 in
24 patched.override (old: {
025 preRebuild = (old.preRebuild or "") + ''
26 # This should not be needed (thanks to binwrap* being nooped) but for some reason it still needs to be done
27 # in case of just this package
···124 patched = patchNpmElm nodePkgs.elm-land;
125 in
126 patched.override (old: {
0127 meta = with lib; nodePkgs."elm-land".meta // {
128 description = "Production-ready framework for building Elm applications";
129 homepage = "https://elm.land/";
···6 inherit pkgs nodejs;
7 inherit (pkgs.stdenv.hostPlatform) system;
8 };
9+ ESBUILD_BINARY_PATH = lib.getExe (
10+ pkgs.esbuild.override {
11+ buildGoModule = args: pkgs.buildGoModule (args // rec {
12+ version = "0.20.2";
13+ src = pkgs.fetchFromGitHub {
14+ owner = "evanw";
15+ repo = "esbuild";
16+ rev = "v${version}";
17+ hash = "sha256-h/Vqwax4B4nehRP9TaYbdixAZdb1hx373dNxNHvDrtY=";
18+ };
19+ vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ=";
20+ });
21+ }
22+ );
23in
24with self; with elmLib; {
25 inherit (nodePkgs) elm-live elm-upgrade elm-xref elm-analyse elm-git-install;
···36 };
37 in
38 patched.override (old: {
39+ inherit ESBUILD_BINARY_PATH;
40 preRebuild = (old.preRebuild or "") + ''
41 # This should not be needed (thanks to binwrap* being nooped) but for some reason it still needs to be done
42 # in case of just this package
···139 patched = patchNpmElm nodePkgs.elm-land;
140 in
141 patched.override (old: {
142+ inherit ESBUILD_BINARY_PATH;
143 meta = with lib; nodePkgs."elm-land".meta // {
144 description = "Production-ready framework for building Elm applications";
145 homepage = "https://elm.land/";
···1{ nodePkgs, pkgs, lib, makeWrapper }:
23-nodePkgs."elm-pages".overrideAttrs (
0000000000000004 old: {
05 nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ makeWrapper old.nodejs.pkgs.node-gyp-build ];
000067 # can't use `patches = [ <patch_file> ]` with a nodePkgs derivation;
8 # need to patch in one of the build phases instead.
···1{ nodePkgs, pkgs, lib, makeWrapper }:
23+let
4+ ESBUILD_BINARY_PATH = lib.getExe (
5+ pkgs.esbuild.override {
6+ buildGoModule = args: pkgs.buildGoModule (args // rec {
7+ version = "0.21.5";
8+ src = pkgs.fetchFromGitHub {
9+ owner = "evanw";
10+ repo = "esbuild";
11+ rev = "v${version}";
12+ hash = "sha256-FpvXWIlt67G8w3pBKZo/mcp57LunxDmRUaCU/Ne89B8=";
13+ };
14+ vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ=";
15+ });
16+ }
17+ );
18+in nodePkgs."elm-pages".overrideAttrs (
19 old: {
20+ inherit ESBUILD_BINARY_PATH;
21 nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ makeWrapper old.nodejs.pkgs.node-gyp-build ];
22+23+ preRebuild = ''
24+ sed -i 's/"esbuild": "0\.19\.12"/"esbuild": "0.21.5"/' package.json
25+ '';
2627 # can't use `patches = [ <patch_file> ]` with a nodePkgs derivation;
28 # need to patch in one of the build phases instead.
···10 -o node-packages.nix \
11 -c node-composition.nix \
12 --no-copy-node-env -e ../../../../node-packages/node-env.nix
13+# well, elm-pages requires two different version of esbuild so we twist it's wrist to only use one
14+sed -i 's/sources."esbuild-0.19.12"/sources."esbuild-0.21.5"/' node-packages.nix