python3Packages.unrardll: move env vars into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-28 14:03:22 +01:00
parent 12d340b634
commit 2e5b492a7b
@@ -18,7 +18,9 @@ buildPythonPackage rec {
buildInputs = [ unrar ];
NIX_CFLAGS_LINK = lib.optionalString stdenv.hostPlatform.isDarwin "-headerpad_max_install_names";
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_LINK = "-headerpad_max_install_names";
};
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
install_name_tool -change libunrar.so ${unrar}/lib/libunrar.so $out/lib/python*/site-packages/unrardll/unrar.*-darwin.so