gomod2nix/overlay.nix
2023-11-14 09:05:47 +01:00

10 lines
367 B
Nix

final: prev:
let
# The current default sdk for macOS fails to compile go projects, so we use a newer one for now.
# This has no effect on other platforms.
callPackage = final.darwin.apple_sdk_11_0.callPackage or final.callPackage;
in
{
inherit (callPackage ./builder { }) buildGoApplication mkGoEnv mkVendorEnv;
gomod2nix = callPackage ./default.nix { };
}