-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Snippet: how to mix two nixpkgs #178
Comments
FWIW, I use the following:
|
@pecigonzalo Did you need to configure anything else in I'm getting this error when trying to build x86-64 packages:
I tried adding |
My
I did not add any special builders or anything |
I figured it out: you have to specify Also I added |
@evanrelf to what command line? Im not passing such argument. Maybe you hav a different workflow? |
Yeah sorry, I wasn't clear. I have a different workflow. I'm |
Does anyone have this as an overlay using only its inputs? I guess it might be impossible, but I'd like to do something roughly like final : prev : {
elm = prev.x64_64-darwin.prev;
} if possible. |
@kubukoz You can technically do this: pkgsFinal: pkgsPrev: {
x86_64-darwin = import pkgsFinal.path {
system = "x86_64-darwin";
inherit (pkgsFinal) config overlays;
};
} But it gets tricky very quickly. Using pkgsFinal: pkgsPrev: {
# This is bad!
hello = pkgsFinal.x86_64-darwin.hello;
}
If you pick a different name, it's okay: pkgsFinal: pkgsPrev: {
hello-x86_64 = pkgsFinal.x86_64-darwin.hello;
} Or if you just use the package in the definition of another: pkgsFinal: pkgsPrev: {
env = pkgsPrev.buildEnv {
name = "my-env";
paths = with pkgsFinal; [ hello ];
};
} |
That's exactly what I was looking for, I think :) thank you very much. Getting mine in the morning so I'll play around then 😂 |
A good example is mixing aarch64-darwin and x86_64-darwin. Another one is using unstable and stable to get different versions of software.
The text was updated successfully, but these errors were encountered: