Fix shell.nix for sharp

This commit is contained in:
Zoe Roux 2025-12-04 12:17:20 +01:00
parent 96ac331903
commit 81c6f68509
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View File

@ -13,4 +13,7 @@ pkgs.mkShell {
];
SHARP_FORCE_GLOBAL_LIBVIPS = 1;
shellHook = ''
export LD_LIBRARY_PATH=${pkgs.stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH
'';
}

View File

@ -16,6 +16,9 @@ pkgs.mkShell {
# env vars aren't inherited from the `inputsFrom`
SHARP_FORCE_GLOBAL_LIBVIPS = 1;
shellHook = ''
export LD_LIBRARY_PATH=${pkgs.stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH
'';
UV_PYTHON_PREFERENCE = "only-system";
UV_PYTHON = pkgs.python313;
}