Help us shape the future of Go! Take the 2026 Go Developer Survey

vgo2nix

command module
v0.0.0-...-ee7fc0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 17 Imported by: 0

README

[[https://travis-ci.org/adisbladis/vgo2nix][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
#+begin_src
vgo2nix
#+end_src

This will write a file called =deps.nix= that is to be used together with an expression like
#+begin_src nix
{ buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
  name = "vgo2nix-${version}";
  version = "example";
  goPackagePath = "...";  # Incomplete
  src = fetchFromGitHub { ... };  # Incomplete
  goDeps = ./deps.nix;
}
#+end_src

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL