vgo2nix
Convert go.mod
files to nixpkgs buildGoPackage
compatible deps.nix
files
Usage
From the go project directory execute
vgo2nix
This will write a file called deps.nix
that is to be used together with an expression like
{ buildGoPackage }:
buildGoPackage rec {
name = "vgo2nix-${version}";
version = "example";
src = fetchFromGitHub { ... }; # Incomplete
goDeps = ./deps.nix;
}
For more in-depth usage there is an excellent guide here: https://github.com/MatrixAI/Golang-Demo
Known issues
vgo2nix currently only supports git dependencies