-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add LLVM to Flake #12229
base: master
Are you sure you want to change the base?
Add LLVM to Flake #12229
Conversation
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.
This will expose us to LLVM-Linux regressions in Nixpkgs when updating, but we could try with your help, which I see you're already providing in Nixpkgs.
Would it be ok to list you as a co-maintainer for this attribute?
(I don't think we're doing that kind of thing yet - could be a comment or perhaps also something in meta.maintainers
, although I suspect that attr doesn't get much attention here)
@@ -99,7 +99,7 @@ mkMesonExecutable (finalAttrs: { | |||
mesonFlags = [ | |||
]; | |||
|
|||
env = lib.optionalAttrs (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux")) { | |||
env = lib.optionalAttrs (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux") && !(stdenv.hostPlatform.useLLVM)) { |
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.
Looks like these lines can all be moved to mesonBuildLayer
@@ -282,6 +283,7 @@ | |||
# These attributes go right into `packages.<system>`. | |||
"${pkgName}" = nixpkgsFor.${system}.native.nixComponents.${pkgName}; | |||
"${pkgName}-static" = nixpkgsFor.${system}.static.nixComponents.${pkgName}; | |||
"${pkgName}-llvm" = nixpkgsFor.${system}.llvm.nixComponents.${pkgName}; |
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.
"${pkgName}-llvm" = nixpkgsFor.${system}.llvm.nixComponents.${pkgName}; | |
/** Nix and dependencies built with LLVM. */ | |
"${pkgName}-llvm" = nixpkgsFor.${system}.llvm.nixComponents.${pkgName}; |
Yeah, that's why I'm trying to work on this. I'm wanting a full LLVM NixOS system and having Nix working properly on that would be ideal.
Sure |
Motivation
Fixes #12228
Context
Builds Nix with
pkgsLLVM
, this allows for using Clang + libcxx and all dependencies needed for Nix are dependent on LLVM this way. Adding this in can help prevent regressions of Nix underpkgsLLVM
.Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.