Proposal: explicit (temporary) name for darwin SDK check #175862
Labels
6.topic: darwin
Running or building packages on Darwin
6.topic: developer experience
nixpkgs development workflow
#175653 (comment) was written somewhat tongue-in-cheek, but I stand by the core idea:
While the SDK situation on
x86_64-darwin
gets figured out, we could do with an interim solution for expressing brokenness as a result of the 10.12 SDK getting long in the tooth, and it could do with a name. The value would be along the lines of:(can't be just the latter as
darwinSdkVersion
still evaluates to something on Linux)Currently, others and I have been using
broken = stdenv.isDarwin && stdenv.isx86_64
in those situations, especially to correct spuriousbroken = stdenv.isDarwin
, but that's not really what we're trying to express here, and it unfortunately won't cause rebuilds when the x86_64 SDK does get bumped.The idea behind giving it a name is that:
The questions I have for the maintainers are:
isOldDarwinSdk
doesn't exactly roll off the fingers.lib
that takes a platform (if so, where inlib
), or would it be acceptable to directly apply it and pollutestdenv
's namespace for the sake of concision, bearing in mind that it's temporary?Once I get some feedback, I'll put in a proper PR accordingly.
The text was updated successfully, but these errors were encountered: