mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-21 20:55:00 +00:00
1633dc0c79
Expose mkVendorEnv
10 lines
367 B
Nix
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 { };
|
|
}
|