From 598c5ab1a677eee3c799e09d23bab8cecb9b1e2f Mon Sep 17 00:00:00 2001 From: HuangYi Date: Wed, 20 Jul 2022 11:42:46 +0800 Subject: [PATCH] requires a newer Apple SDK on macOS --- flake.lock | 8 ++++---- flake.nix | 2 +- overlay.nix | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index 53fd262..1340215 100644 --- a/flake.lock +++ b/flake.lock @@ -2,16 +2,16 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1653581809, - "narHash": "sha256-Uvka0V5MTGbeOfWte25+tfRL3moECDh1VwokWSZUdoY=", + "lastModified": 1658285632, + "narHash": "sha256-zRS5S/hoeDGUbO+L95wXG9vJNwsSYcl93XiD0HQBXLk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "83658b28fe638a170a19b8933aa008b30640fbd1", + "rev": "5342fc6fb59d0595d26883c3cadff16ce58e44f3", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-unstable", + "ref": "master", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index c6b3a8e..9a41274 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,7 @@ { description = "Convert go.mod/go.sum to Nix packages"; - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/master"; inputs.utils.url = "github:numtide/flake-utils"; diff --git a/overlay.nix b/overlay.nix index d878444..7fda638 100644 --- a/overlay.nix +++ b/overlay.nix @@ -1,4 +1,4 @@ final: prev: { - inherit (final.callPackage ./builder { }) buildGoApplication mkGoEnv; - gomod2nix = final.callPackage ./default.nix { }; + inherit (final.darwin.apple_sdk_11_0.callPackage ./builder { }) buildGoApplication mkGoEnv; + gomod2nix = final.darwin.apple_sdk_11_0.callPackage ./default.nix { }; }