-
-
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
Allow derivations in meta
#2532
Comments
|
It's indeed the workaround implemented in NixOS/nixpkgs#50233, but it feels (at least to me) semantically wrong. Then, if |
Doesn't |
I’m also surprised ofborg did not catch this
… On Nov 12, 2018, at 11:02, Eelco Dolstra ***@***.***> wrote:
Doesn't make-tarball.nix in Nixpkgs already catch this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
For |
Is the conclusion to use |
The former :) It would be good to document this better though. |
I marked this as stale due to inactivity. → More info |
I closed this issue due to inactivity. → More info |
It looks like nix refuses to have derivations in
meta
for some operations (eg. exporting as JSON):nix/src/libexpr/get-drvs.cc
Line 166 in 6924bdf
This has caused NixOS/nixpkgs#50230, after the change in NixOS/nixpkgs#44439.
Currently, the solution appears to be to use
passthru.tests
instead ofmeta.tests
, which is a possibility but appears semantically wrong.Would it be possible to make Nix able to have derivations in
meta
? I think a legitimate display value for these would be the result of instantiating the derivation, without building it.Alternatively, I think
checkMeta
should be called at each build, so that it's not possible to miss it like we did :)The text was updated successfully, but these errors were encountered: