-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
haskell generic-builder: Fix Dependencies #33368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
b372ce8
to
f1dbf51
Compare
Can you please re-base on top of the current |
Why not set the flags through |
f1dbf51
to
3d1e228
Compare
The idea is cabal-install / `./Setup` will know about C headers and libs, but the C compiler itself will not directly. - nativeGhc -> depsBuildBuild - Setup.hs libraries -> nativeBuildInputs - other tools -> nativeBuildInputs - libraries -> (propagated)NativeBuildInputs Also, I'm trying to start the process of smoothing over the differences between our builder and shell env. - Everyone gets tools - Everyone only accesses C through Cabal
Use the clang sierrahack stdenv instead
Also make sure that Setup.hs dependencies are kept disjoint
3d1e228
to
ef6161b
Compare
OK the later commits I added aren't really appropriate at this time, as I need to dust off my darwin hack first and make it appropriate for |
Will revisit after #26799, which is very close. |
What is the status of this pull request? |
Closing this as it's out of sync. |
Motivation for this change
The idea is that one can do
cabal configure $NIX_CABAL_FOREIGN_FLAGS
which ensure that Cabal knows about C headers and libs, but not the c compiler itself.Also, I'm trying to start the process of smoothing over the differences between our builder and shell env.
-system
or-L
flagsI'd like to go even farther and
ghcWithPackages
--with-package-db
to./Setup
/NIX_CABAL_FOREIGN_FLAGS
ghcWithPackages
, OTOH, should use acc-with-packages
, for a completely (cabal-install or stack)-free persistent environments. Granted, I don't know why one would want to not use either of these tools, but ifghcWithPackages
continues to exist with the plan above, this gives it its own clear-cut and distinct niche.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)