gopass-jsonapi: 1.15.14 -> 1.15.15#358760
Conversation
aae397f to
94f20d0
Compare
There was a problem hiding this comment.
How to choose the sdk version?
There was a problem hiding this comment.
The stdenv platform notes documentation has recommendations. But do you need anything at all here? It seems like the relevant file conditions on the minimum macOS version being targeted (somewhat incorrectly), so you should be able to just use the default and < ScreenCaptureKit/ScreenCaptureKit.h> won’t be included.
There was a problem hiding this comment.
@emilazy Initially I didn't try to add anything Darwin specific, but I got build errors saying:
# github.com/kbinani/screenshot
vendor/github.com/kbinani/screenshot/darwin.go:9:10: fatal error: 'ScreenCaptureKit/ScreenCaptureKit.h' file not found
#include <ScreenCaptureKit/ScreenCaptureKit.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
How do you explain this?
There was a problem hiding this comment.
I guess the issue is that it conditions it on __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > MAC_OS_VERSION_14_4, and maybe the undefined MAC_OS_VERSION_14_4 on our default SDK is defaulting to 0 or something? Anyway you can give it apple-sdk_14 and omit any darwinMinVersionHook.
There was a problem hiding this comment.
OK thanks it worked. I wonder then, what does it mean to use darwinMinVersionHook along with a specific apple-sdk version? Why do we need the former if we are capable of choosing any of the later?
There was a problem hiding this comment.
apple-sdk_* determines what APIs are available, darwinMinVersionHook determines what is required at runtime. Some applications will use available APIs without conditioning on runtime availability and some (like this Go code) will only use APIs if they are available on the minimum version rather than checking for runtime availability, so we have both knobs. Usually you don’t want to adjust the darwinMinVersionHook unless you have to. See the docs and my longer‐form explanation if you want the algorithm I use for tricky cases (but in most cases you can follow the docs’ recommendation of “only do anything if the build breaks; if it does then use the lowest SDK that works; don’t do anything else”).
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/the-darwin-sdks-have-been-updated/55295/28 |
|
@NixOS/nixpkgs-vet could anyone explain the obscure nix formatting error here? |
94f20d0 to
4ca369a
Compare
Can't reproduce the error anymore... |
Description of changes
Things done
nix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.