Comments (3)
You don't need to add vendor
to GOPATH
. This would be included automatically.
I ran https://github.com/kamilchm/go2nix/blob/master/test/test_leaps.sh with current go2nix
1.1.1 and it produces deps.nix
like:
# This file was generated by go2nix.
[
{
goPackagePath = "golang.org/x/net";
fetch = {
type = "git";
url = "https://go.googlesource.com/net";
rev = "5d997795f7bb1d2de5edc1f5d64af2562401c82d";
sha256 = "1kcqn4lninavavlspcn6gn621cvn2skyc9jwfwy8052ys8p1r2kg";
};
}
]
from go2nix.
I also did:
nix-shell -p go2nix git go
cd `mktemp -d`
export GOPATH=`pwd`
go get github.com/jeffail/leaps/cmd/...
cd src/github.com/jeffail/leaps/cmd/leaps
go2nix save
and I got deps.nix
:
# This file was generated by go2nix.
[
{
goPackagePath = "golang.org/x/net";
fetch = {
type = "git";
url = "https://go.googlesource.com/net";
rev = "5d997795f7bb1d2de5edc1f5d64af2562401c82d";
sha256 = "1kcqn4lninavavlspcn6gn621cvn2skyc9jwfwy8052ys8p1r2kg";
};
}
]
Could you try it exactly like that?
from go2nix.
yeah, that works!
i want to add this example to the README.md soon.
thanks!
from go2nix.
Related Issues (20)
- version naming conventions HOT 1
- Support for gb manifest files HOT 2
- Unclear what `go2nix save` is looking for HOT 6
- Gopath detection broken HOT 2
- New release? HOT 2
- Undeclared dependency on nix-prefetch-git HOT 1
- Missing dependencies on Siad HOT 1
- Only imported used VCS's
- Add flag to configure target file. HOT 1
- How to generate expressions for Hugo? HOT 2
- Help generating a package for Leanote HOT 4
- Cannot work out how to package rabbitmq-explorer HOT 5
- Does the package need to be a git repository? HOT 3
- nix-prefetch-git fails without NIX_REMOTE being set (nix 2.0)
- Improve documentation on where to run go2nix HOT 1
- Mention dep2nix HOT 5
- Unable to find vendored packages HOT 1
- Request a better error reporting
- go2nix probably can't be called in a builder because nix-prefetch-git wants access to the store HOT 2
- Cannot find branch of package HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go2nix.