From d987342df00eb3a603f192836bdc14410601cdc7 Mon Sep 17 00:00:00 2001 From: aster <137767097+aster-void@users.noreply.github.com> Date: Mon, 20 Jan 2025 23:36:43 +0900 Subject: [PATCH 1/2] hack: fixed it sometimes not running on NixOS --- flake.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/flake.nix b/flake.nix index 8543392e..3ccef283 100644 --- a/flake.nix +++ b/flake.nix @@ -31,6 +31,7 @@ common = { packages = with pkgs; [ + nixVersions.nix_2_25 # HACK: to fix the side effect of the hack below, installing two instances of nix gnumake bun nodejs-slim @@ -47,6 +48,12 @@ PRISMA_QUERY_ENGINE_LIBRARY = "${prisma-engines}/lib/libquery_engine.node"; PRISMA_INTROSPECTION_ENGINE_BINARY = "${prisma-engines}/bin/introspection-engine"; PRISMA_FMT_BINARY = "${prisma-engines}/bin/prisma-fmt"; + + # HACK: sharp can't find libstdc++.so.6 on bun without this + # - hack because: setting this may break other packages + # - info: it can find libstdc++.so.6 on Node.js + # - info: NobbZ says it's because "We can not set an rpath for a scripting language" + LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib"; }; }; in { From 479bc2ef1f0beb53f96e771e0dac340ab8810072 Mon Sep 17 00:00:00 2001 From: aster <137767097+aster-void@users.noreply.github.com> Date: Mon, 20 Jan 2025 23:43:00 +0900 Subject: [PATCH 2/2] use stable nix --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 3ccef283..d29c284e 100644 --- a/flake.nix +++ b/flake.nix @@ -31,7 +31,7 @@ common = { packages = with pkgs; [ - nixVersions.nix_2_25 # HACK: to fix the side effect of the hack below, installing two instances of nix + nix # HACK: to fix the side effect of the hack below, installing two instances of nix gnumake bun nodejs-slim