Merge pull request #85 from srhb/conditional-sdk-upgrade

overlay: fallback to default callPackage for stable nixpkgs
This commit is contained in:
adisbladis 2022-08-31 21:06:03 +12:00 committed by GitHub
commit b57059cef6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,8 @@
final: prev:
let
callPackage = final.darwin.apple_sdk_11_0.callPackage;
# The newer Darwin SDK does not exist in current (nixos-22.05) stable
# branches, so just fallback to the default callPackage.
callPackage = final.darwin.apple_sdk_11_0.callPackage or final.callPackage;
in
{
inherit (callPackage ./builder { }) buildGoApplication mkGoEnv;