···11-{ pkgs, nodejs_16, stdenv, lib, nixosTests }:
11+{ pkgs, stdenv, lib, nixosTests }:
2233let
44 nodePackages = import ./node-composition.nix {
···13131414 buildInputs = [
1515 pkgs.postgresql
1616+ pkgs.libmongocrypt
1617 ];
17181819 # Oracle's official package on npm is binary only (WHY?!) and doesn't provide binaries for aarch64.
···2324 preRebuild = lib.optionalString stdenv.isAarch64 ''
2425 rm -rf node_modules/oracledb
2526 '';
2727+2828+ # makes libmongocrypt bindings not look for static libraries in completely wrong places
2929+ BUILD_TYPE = "dynamic";
26302731 dontNpmInstall = true;
2832
+5-2
pkgs/applications/networking/n8n/node-env.nix
···530530 then
531531 ln -s $out/lib/node_modules/.bin $out/bin
532532533533- # Patch the shebang lines of all the executables
533533+ # Fixup all executables
534534 ls $out/bin/* | while read i
535535 do
536536 file="$(readlink -f "$i")"
537537 chmod u+rwx "$file"
538538- patchShebangs "$file"
538538+ if isScript "$file"
539539+ then
540540+ sed -i 's/\r$//' "$file" # convert crlf to lf
541541+ fi
539542 done
540543 fi
541544