Open ocharles opened 6 years ago
This is go2nix 1.2.1
.
@ocharles I was able to build that package manually after adding a few deps; I'm not sure why go2nix
didn't pick them up.
[
{
goPackagePath = "golang.org/x/net";
fetch = {
type = "git";
url = "https://go.googlesource.com/net";
rev = "a8b9294777976932365dabb6640cf1468d95c70f";
sha256 = "112v83jfwd1brwaanjijvb7da4dx1iqk8b4bf9ahx0hvir56c2g8";
};
}
{
goPackagePath = "github.com/pkg/errors";
fetch = {
type = "git";
url = "https://github.com/pkg/errors";
rev = "645ef00459ed84a119197bfb8d8205042c6df63d";
sha256 = "001i6n71ghp2l6kdl3qq1v2vmghcz3kicv9a5wgcihrzigm75pp5";
};
}
{
goPackagePath = "github.com/fsouza/go-dockerclient";
fetch = {
type = "git";
url = "https://github.com/fsouza/go-dockerclient";
rev = "1d4f4ae73768d3ca16a6fb964694f58dc5eba601";
sha256 = "1s3m8jq8z1cm5rkn7dmjacf38n6ihkkzbdfang2aa2cgs5wl28y0";
};
}
{
goPackagePath = "github.com/cenk/backoff";
fetch = {
type = "git";
url = "https://github.com/cenk/backoff";
rev = "61153c768f31ee5f130071d08fc82b85208528de";
sha256 = "08x77mgb9zsj047n74rx6c16jjx985lmy4s6fl58mdgxgxjv54y5";
};
}
{
goPackagePath = "gopkg.in/ory-am/dockertest.v3";
fetch = {
type = "git";
url = "https://gopkg.in/ory-am/dockertest.v3";
rev = "a7951f7a8442f0e70d36e499ed4d744f00af2963";
sha256 = "13qv0vl79m2wirhbjs0k2a3cjl6ib7sw6rg98v95xxpn8r39ijzw";
};
}
{
goPackagePath = "github.com/streadway/amqp";
fetch = {
type = "git";
url = "https://github.com/streadway/amqp";
rev = "ff791c2d22d3f1588b4e2cc71a9fba5e1da90654";
sha256 = "1drridn4k1n7qy82msvw9r18w4pmrah1nip36wixz098nzalz55x";
};
}
{
goPackagePath = "github.com/Sirupsen/logrus";
fetch = {
type = "git";
url = "https://github.com/Sirupsen/logrus";
rev = "d682213848ed68c0a260ca37d6dd5ace8423f5ba";
sha256 = "0nzyqwzx3k7nqfq8q7yv32gaf3ymq3bpwhkmw1hj2zakq5a93d8x";
};
}
{
goPackagePath = "github.com/beorn7/perks";
fetch = {
type = "git";
url = "https://github.com/beorn7/perks";
rev = "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9";
sha256 = "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y";
};
}
{
goPackagePath = "github.com/golang/protobuf";
fetch = {
type = "git";
url = "https://github.com/golang/protobuf";
rev = "1e59b77b52bf8e4b449a57e6f79f21226d571845";
sha256 = "19bkh81wnp6njg3931wky6hsnnl2d1ig20vfjxpv450sd3k6yys8";
};
}
{
goPackagePath = "github.com/kbudde/gobert";
fetch = {
type = "git";
url = "https://github.com/kbudde/gobert";
rev = "a6daecb9ddeb548b7cfb3f5ac9deef9ded522730";
sha256 = "06g036w4dny8wdjwvprjjcdh0vx851qphgrvilrn5lghv3jdr29z";
};
}
{
goPackagePath = "github.com/matttproud/golang_protobuf_extensions";
fetch = {
type = "git";
url = "https://github.com/matttproud/golang_protobuf_extensions";
rev = "c12348ce28de40eed0136aa2b644d0ee0650e56c";
sha256 = "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya";
};
}
{
goPackagePath = "github.com/prometheus/client_golang";
fetch = {
type = "git";
url = "https://github.com/prometheus/client_golang";
rev = "661e31bf844dfca9aeba15f27ea8aa0d485ad212";
sha256 = "0r9sr3m57ks7rc5bbghl0gy9wxlznzmz331xdp42zlgk6g774xcn";
};
}
{
goPackagePath = "github.com/prometheus/client_model";
fetch = {
type = "git";
url = "https://github.com/prometheus/client_model";
rev = "99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c";
sha256 = "19y4ywsivhpxj7ikf2j0gm9k3cmyw37qcbfi78n526jxcc7kw998";
};
}
{
goPackagePath = "github.com/prometheus/common";
fetch = {
type = "git";
url = "https://github.com/prometheus/common";
rev = "2e54d0b93cba2fd133edc32211dcc32c06ef72ca";
sha256 = "14kn5w7imcxxlfdqxl21fsnlf1ms7200g3ldy29hwamldv8qlm7j";
};
}
{
goPackagePath = "github.com/prometheus/procfs";
fetch = {
type = "git";
url = "https://github.com/prometheus/procfs";
rev = "f98634e408857669d61064b283c4cde240622865";
sha256 = "098r6x3b1vawp69scz0z9drrx9pdz1a8f7nimqgw26wm39cms15w";
};
}
{
goPackagePath = "golang.org/x/crypto";
fetch = {
type = "git";
url = "https://go.googlesource.com/crypto";
rev = "d585fd2cc9195196078f516b69daff6744ef5e84";
sha256 = "0d4p1zb9kbg1y4z3034f15xygdnaap7mxbsy66xxxpc1fkjjpn29";
};
}
{
goPackagePath = "golang.org/x/sys";
fetch = {
type = "git";
url = "https://go.googlesource.com/sys";
rev = "571f7bbbe08da2a8955aed9d4db316e78630e9a3";
sha256 = "048ahxnvk0246qssrplsr19zis4nr242g70jgcxmgy5awips4bmb";
};
}
]
These are the ones that I added:
diff --git a/deps.nix b/deps.nix
index 3da504c..a9c0473 100644
--- a/deps.nix
+++ b/deps.nix
@@ -1,5 +1,65 @@
# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
[
+ {
+ goPackagePath = "golang.org/x/net";
+ fetch = {
+ type = "git";
+ url = "https://go.googlesource.com/net";
+ rev = "a8b9294777976932365dabb6640cf1468d95c70f";
+ sha256 = "112v83jfwd1brwaanjijvb7da4dx1iqk8b4bf9ahx0hvir56c2g8";
+ };
+ }
+
+ {
+ goPackagePath = "github.com/pkg/errors";
+ fetch = {
+ type = "git";
+ url = "https://github.com/pkg/errors";
+ rev = "645ef00459ed84a119197bfb8d8205042c6df63d";
+ sha256 = "001i6n71ghp2l6kdl3qq1v2vmghcz3kicv9a5wgcihrzigm75pp5";
+ };
+ }
+
+ {
+ goPackagePath = "github.com/fsouza/go-dockerclient";
+ fetch = {
+ type = "git";
+ url = "https://github.com/fsouza/go-dockerclient";
+ rev = "1d4f4ae73768d3ca16a6fb964694f58dc5eba601";
+ sha256 = "1s3m8jq8z1cm5rkn7dmjacf38n6ihkkzbdfang2aa2cgs5wl28y0";
+ };
+ }
+
+ {
+ goPackagePath = "github.com/cenk/backoff";
+ fetch = {
+ type = "git";
+ url = "https://github.com/cenk/backoff";
+ rev = "61153c768f31ee5f130071d08fc82b85208528de";
+ sha256 = "08x77mgb9zsj047n74rx6c16jjx985lmy4s6fl58mdgxgxjv54y5";
+ };
+ }
+
+ {
+ goPackagePath = "gopkg.in/ory-am/dockertest.v3";
+ fetch = {
+ type = "git";
+ url = "https://gopkg.in/ory-am/dockertest.v3";
+ rev = "a7951f7a8442f0e70d36e499ed4d744f00af2963";
+ sha256 = "13qv0vl79m2wirhbjs0k2a3cjl6ib7sw6rg98v95xxpn8r39ijzw";
+ };
+ }
+
+ {
+ goPackagePath = "github.com/streadway/amqp";
+ fetch = {
+ type = "git";
+ url = "https://github.com/streadway/amqp";
+ rev = "ff791c2d22d3f1588b4e2cc71a9fba5e1da90654";
+ sha256 = "1drridn4k1n7qy82msvw9r18w4pmrah1nip36wixz098nzalz55x";
+ };
+ }
+
{
goPackagePath = "github.com/Sirupsen/logrus";
fetch = {
You can use this one https://gist.github.com/kamilchm/c81e0b90a2494f2a1beb07d80205ba71 It was generated using v2 branch I'm working on, where I use golang dep tool files to resolve dependencies.
Thanks @kamilchm - those expressions work great. Do you want to keep this issue open?