Is there any way I can define runtime dependencies in Nix shell outside of buildInputs, such that the dependencies only have their /bin appended to $PATH and not other flags like $NIX_LDFLAGS? The reason is my team's Nix shell have many runtime dependencies, and they are polluting the the linker flags so much that it is indirectly causing argument list too long error on MacOS when running cabal build.
Is there any way I can define runtime dependencies in Nix shell outside of
buildInputs
, such that the dependencies only have their /bin appended to$PATH
and not other flags like$NIX_LDFLAGS
? The reason is my team's Nix shell have many runtime dependencies, and they are polluting the the linker flags so much that it is indirectly causingargument list too long
error on MacOS when runningcabal build
.