forked from mirrors/gomod2nix
a4bed25a86
This creates an `mkGoEnv` function which takes care of adding the correct Go package to your development environment and installs development dependencies from tools.go in a Nix derivation. The "normal" workflow around Go with tools.go just sticks development dependencies in $GOBIN which isn't ideal since you have no separation between projects.
4 lines
140 B
Nix
4 lines
140 B
Nix
final: prev: {
|
|
inherit (final.callPackage ./builder { }) buildGoApplication mkGoEnv;
|
|
gomod2nix = final.callPackage ./default.nix { };
|
|
}
|