corpix / vgo2nix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:Nix 55.5%Language:Go 44.2%Language:Makefile 0.3%