Download go modules Nix OS

173 Views Asked by At

I'm downloading a program from github and trying to build it. The program is written in go and uses external modules. After running the nix script, I get an error suggesting that I use the go get command. How can I get modules from a nix script?

My nix script:

buildGoModule rec{ 
    name = "HH";
    src = fetchGit{
      url = "[email protected]:q/q.git";
    };
   vendorSha256 = "";
 
}

Error:

hh imports
        github.com/google/uuid: no required module provides package github.com/google/uuid; to add it:
        go get github.com/google/uuid
0

There are 0 best solutions below