Fix nix eval impurity problem

This commit is contained in:
Agahnim
2026-04-29 22:22:41 +02:00
committed by Agahnim
parent 220763b389
commit ae9c012040
2 changed files with 2 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
src = ./.;
patchSassEmbedded = pkgs.writeShellScriptBin "patch-sass-embedded" ''
NIX_LD="${pkgs.lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker"}"
NIX_LD="$(cat ${pkgs.stdenv.cc}/nix-support/dynamic-linker)"
for dart_bin in node_modules/sass-embedded-linux-*/dart-sass/src/dart; do
if [ -f "$dart_bin" ]; then
${pkgs.patchelf}/bin/patchelf --set-interpreter "$NIX_LD" "$dart_bin"