-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
haskell infra: Misc cleanups #27840
haskell infra: Misc cleanups #27840
Conversation
7ecde0f
to
80c424d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With that patch applied, I get errors trying to evaluate Nixpkgs:
❯ nix-env -qaP --show-trace
error: while evaluating the attribute ‘haskellPackages.callPackage’ at /home/simons/.config/nixpkgs/config.nix:168:5:
while evaluating the attribute ‘haskellPackages.override’ at /home/simons/.nix-defexpr/pkgs/top-level/all-packages.nix:5548:3:
while evaluating the attribute ‘packages.ghc802.override’ at /home/simons/.nix-defexpr/pkgs/top-level/haskell-packages.nix:162:5:
while evaluating ‘callPackageWith’ at /home/simons/.nix-defexpr/lib/customisation.nix:113:35, called from /home/simons/.nix-defexpr/pkgs/top-level/haskell-packages.nix:162:14:
while evaluating ‘makeOverridable’ at /home/simons/.nix-defexpr/lib/customisation.nix:72:24, called from /home/simons/.nix-defexpr/lib/customisation.nix:117:8:
undefined variable ‘callPackage’ at /home/simons/.nix-defexpr/pkgs/development/haskell-modules/default.nix:15:21
Did you actually test this patch?
@peti I evaluated one derivation, but meant to mark it WIP pending more testing. Odd my one derivation did not pick that up... |
80c424d
to
443aa41
Compare
- The haskell lib is very close to not relying on Nixpkgs. I think this is good---simpler to think about and matches Nixpkgs's lib. - The haskell lib is only imported once - stdenv is exposed more shallowly so it can be overriden more easily. I'll eventually use this on Darwin to avoid the Sierra shared library problems (unless changes are to be made system-wide).
443aa41
to
542d68f
Compare
Ok, |
Pulled to |
@peti err to be clear this shouldn't change any hashes. Can I force eval of your job to expedite merging then? |
- The haskell lib is very close to not relying on Nixpkgs. I think this is good---simpler to think about and matches Nixpkgs's lib. - The haskell lib is only imported once - stdenv is exposed more shallowly so it can be overriden more easily. I'll eventually use this on Darwin to avoid the Sierra shared library problems (unless changes are to be made system-wide). Closes #27840.
- The haskell lib is very close to not relying on Nixpkgs. I think this is good---simpler to think about and matches Nixpkgs's lib. - The haskell lib is only imported once - stdenv is exposed more shallowly so it can be overriden more easily. I'll eventually use this on Darwin to avoid the Sierra shared library problems (unless changes are to be made system-wide). Closes NixOS#27840.
Motivation for this change
The haskell lib is very close to not relying on Nixpkgs. I think this is good---simpler to think about and matches Nixpkgs's lib.
stdenv is exposed more shallowly so it can be overriden more easily. I'll eventually use this on Darwin to avoid the Sierra shared library problems (unless changes are to be made system-wide).
Things done
Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers.
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)