Skip to content

nix-community/vgo2nix

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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, fetchFromGitHub }:
buildGoPackage rec {
  name = "vgo2nix-${version}";
  version = "example";
  goPackagePath = "...";  # Incomplete
  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

About

Convert go.mod files to nixpkgs buildGoPackage compatible deps.nix files [maintainer=@adisbladis]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published