mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-05 01:59:08 +00:00
8525f7f0e5
This was an attempt to get maximal sharing with Nixpkgs but in hindsight it's better to just have some code duplication.
10 lines
344 B
Nix
10 lines
344 B
Nix
final: prev:
|
|
let
|
|
# 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;
|
|
gomod2nix = callPackage ./default.nix { };
|
|
}
|