Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
.envrc
.gitignore
.travis.yml
COPYING
Makefile
README.org
default.nix
deps.nix
depsnix.go
go.mod
go.sum
main.go
shell.nix

README.org

https://travis-ci.org/adisbladis/vgo2nix.svg?branch=master

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

You can’t perform that action at this time.