File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 3131
3232 common = {
3333 packages = with pkgs ; [
34+ nix # HACK: to fix the side effect of the hack below, installing two instances of nix
3435 gnumake
3536 bun
3637 nodejs-slim
4748 PRISMA_QUERY_ENGINE_LIBRARY = "${ prisma-engines } /lib/libquery_engine.node" ;
4849 PRISMA_INTROSPECTION_ENGINE_BINARY = "${ prisma-engines } /bin/introspection-engine" ;
4950 PRISMA_FMT_BINARY = "${ prisma-engines } /bin/prisma-fmt" ;
51+
52+ # HACK: sharp can't find libstdc++.so.6 on bun without this
53+ # - hack because: setting this may break other packages
54+ # - info: it can find libstdc++.so.6 on Node.js
55+ # - info: NobbZ says it's because "We can not set an rpath for a scripting language"
56+ LD_LIBRARY_PATH = "${ pkgs . stdenv . cc . cc . lib } /lib" ;
5057 } ;
5158 } ;
5259 in {
You can’t perform that action at this time.
0 commit comments