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 Darwin as platform to various "broken" packages that actually build #25066
Conversation
@matthewbauer, thanks for your PR! By analyzing the history of the files in this pull request, we identified @abbradar, @pSub and @edolstra to be potential reviewers. |
@LnL7 got any advice for this? I could definitely split this up if it's too much. They're all good changes though and I hate clogging up the pr with 30+ minor fixes. |
@@ -81,6 +83,6 @@ stdenv.mkDerivation rec { | |||
homepage = http://opencv.org/; | |||
license = stdenv.lib.licenses.bsd3; | |||
maintainers = with stdenv.lib.maintainers; [viric flosse]; | |||
platforms = with stdenv.lib.platforms; linux; | |||
platforms = with stdenv.lib.platforms; linux ++ darwin; |
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.
I'm not sure what's going on here, but it seems like the darwin
variable here is shadowed by the function argument for some reason.
error: value is a set while a list was expected, at pkgs/development/libraries/opencv/default.nix:86:44
Tesseract, wordnet, anti word and libdvdread will probably have the same issue. |
I only checked the packages with actual changes, I'll add everything to the list to make sure. |
Can you fix these?
|
Yeah I can get them. Interestingly, "miniupnpc" was already doing the same thing: https://github.com/ndowens/nixpkgs/blob/9d30abf7b201b6144883815fccf904e83555334b/pkgs/tools/networking/miniupnpc/default.nix#L21 I wonder if that was causing an error? |
It's only a problem for expressions that use |
Ok so a rundown on those 3:
I can also squash the 2 reverted commits if you want but again I'm trying to avoid modifying commit hashes just in case you were working off of them. |
Looks good now, you can rebase/squash. ps. having a list of attribute paths for a batch pr like this would be pretty useful for me, I have some hydra configuration that I usually use to build a set of packages for a pr. |
e9ccbe0
to
2060f5b
Compare
Ok everything looks good! |
Motivation for this change
Adds Darwin as platform to various "broken" packages that actually build.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)