From c3f52f3d79ffdd8aa858f7c5f366def8f2216ba2 Mon Sep 17 00:00:00 2001 From: Sarah Brofeldt Date: Wed, 31 Aug 2022 09:55:27 +0200 Subject: [PATCH] overlay: fallback to default callPackage for stable nixpkgs --- overlay.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/overlay.nix b/overlay.nix index 3034b54..6629049 100644 --- a/overlay.nix +++ b/overlay.nix @@ -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;