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
treewide: get rid of platforms.allBut #36985
Conversation
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec { | |||
description = "Binary decision diagram package"; | |||
license = "as-is"; | |||
|
|||
platforms = with stdenv.lib.platforms; allBut cygwin; | |||
platforms = stdenv.lib.platforms.unix; # Once had cygwin problems |
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.
unix
is actually exactly allBut cygwin
today, but comment is still good because cygwin
probably should be considered Unix and Windows.
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec { | |||
description = "Numix icon theme (square version)"; | |||
homepage = https://numixproject.org; | |||
license = licenses.gpl3; | |||
platforms = with platforms; allBut darwin; | |||
platforms = platforms.linux; # Maybe other non-darwin Unix |
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.
Concretely this now is claimed not work on the BSDs, but that stdenv has bitrotted anyways.
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.
Haven't looked through the details, but 💯 on the concept.
@@ -37,7 +37,9 @@ stdenv.mkDerivation rec { | |||
description = "A GTK2 image viewer, manga reader, and booru browser"; | |||
maintainers = with maintainers; [ skrzyp xzfc ]; | |||
license = licenses.mit; | |||
platforms = platforms.allBut [ "darwin" "cygwin" ]; | |||
# Unintentionally not working on Darwin: | |||
# https://github.com/ahodesuka/ahoviewer/issues/63 |
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.
That's a dead link ;)
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.
ahodesuka/ahoviewer#62 wow I incremented it somehow?
Negative reasoning like `allBut` is a bad idea with an open world of platforms. Concretely, if we add a new, quite different sort of platform, existing packages with `allBut` will claim they work on it even though they probably won't.
Motivation for this change
Negative reasoning like
allBut
is a bad idea with an open world of platforms. Concretely, if we add a new, quite different sort of platform, existing packages withallBut
will claim they work on it even though they probably won't.Also, there's no good/cheap way to implement this with a #34444 strategy.
all
is also bad, but at least as a good constructive interpretation of "I work everywhere because I require nothing; so give me nothing". Relatedly, everything we have left can be expressed with horn clauses,allBut
couldn't be.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)