mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
vegeta: use buildGoModule
This commit is contained in:
parent
72b1ec0a79
commit
34a898a06a
@ -1,25 +1,40 @@
|
||||
{ lib, fetchFromGitHub, buildGoPackage }:
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "vegeta";
|
||||
version = "12.8.4";
|
||||
rev = "e04d9c0df8177e8633bff4afe7b39c2f3a9e7dea";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tsenart";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0sw10k4g370c544dgw2c1sqdnxryld8lf6c1wnyknrm3zsfzn1hl";
|
||||
owner = "tsenart";
|
||||
repo = "vegeta";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-FAb7nf6jZju95YEZR1GjPnfbsA5M8NcIKQyc8cgEgWs=";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/tsenart/${pname}";
|
||||
vendorSha256 = "sha256-v9Hu9eQJSmm4Glt49F7EN40rKjrg4acyll9Bfgey+Mw=";
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
subPackages = [ "." ];
|
||||
|
||||
ldflags = (lib.mapAttrsToList (n: v: "-X main.${n}=${v}") {
|
||||
Version = version;
|
||||
Commit = rev;
|
||||
Date = "1970-01-01T00:00:00Z";
|
||||
}) ++ [ "-s" "-w" "-extldflags '-static'" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Versatile HTTP load testing tool";
|
||||
license = licenses.mit;
|
||||
longDescription = ''
|
||||
Vegeta is a versatile HTTP load testing tool built out of a need to drill
|
||||
HTTP services with a constant request rate. It can be used both as a
|
||||
command line utility and a library.
|
||||
'';
|
||||
homepage = "https://github.com/tsenart/vegeta/";
|
||||
maintainers = [ maintainers.mmahut ];
|
||||
changelog = "https://github.com/tsenart/vegeta/releases/tag/${src.rev}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mmahut ];
|
||||
};
|
||||
}
|
||||
|
||||
|
255
pkgs/tools/networking/vegeta/deps.nix
generated
255
pkgs/tools/networking/vegeta/deps.nix
generated
@ -1,255 +0,0 @@
|
||||
# file generated from go.mod using vgo2nix (https://github.com/adisbladis/vgo2nix)
|
||||
[
|
||||
{
|
||||
goPackagePath = "github.com/alecthomas/jsonschema";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/alecthomas/jsonschema";
|
||||
rev = "f2c93856175a";
|
||||
sha256 = "145w6zg453mbspfyixs71xfjwi3djq20lij1rcgrdcn5gmwj2cal";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/bmizerany/perks";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/bmizerany/perks";
|
||||
rev = "d9a9656a3a4b";
|
||||
sha256 = "0f39b3zfm1zd6xcvlm6szgss026qs84n2j9y5bnb3zxzdkxb9w9n";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/c2h5oh/datasize";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/c2h5oh/datasize";
|
||||
rev = "4eba002a5eae";
|
||||
sha256 = "02sxd659q7m7axfywiqfxk5rh6djh2m5240bin1makldj1nj16j3";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/dgryski/go-gk";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/dgryski/go-gk";
|
||||
rev = "201884a44051";
|
||||
sha256 = "17csmdlqibg5g2pjybh4522dis6nklyhjvly55pawy0vprd17agz";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/dgryski/go-lttb";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/dgryski/go-lttb";
|
||||
rev = "318fcdf10a77";
|
||||
sha256 = "0cs2rr2j6fbbpgmfxkq39pir4bibfzkfwxvd2cvw30q97cmfpiz3";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/gonum/blas";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/gonum/blas";
|
||||
rev = "f22b278b28ac";
|
||||
sha256 = "0dh73akv4gazyhva9xbm9xbq786vij8iisivp3p65p6ahf502fs6";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/gonum/diff";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/gonum/diff";
|
||||
rev = "500114f11e71";
|
||||
sha256 = "1bg4k3bxqb44nz1nmyigr5bx55859n55vvi45w2rq4y5djvpral8";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/gonum/floats";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/gonum/floats";
|
||||
rev = "c233463c7e82";
|
||||
sha256 = "12m7pa64mk3am2i10agg6c1aqdfgx9i3f4bgf3w7wra8bnnjncp6";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/gonum/integrate";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/gonum/integrate";
|
||||
rev = "a422b5c0fdf2";
|
||||
sha256 = "01wfav882h3bcp137cd2bsr91hkmmi4d6qwhdm0xv1p2z2qzs7iq";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/gonum/internal";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/gonum/internal";
|
||||
rev = "f884aa714029";
|
||||
sha256 = "038w8pc82vxq773qg0mw472f3p8h5vkh3ggcdn09qd3s6myp2zq7";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/gonum/lapack";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/gonum/lapack";
|
||||
rev = "e4cdc5a0bff9";
|
||||
sha256 = "046fffskysg0bmha16s5582bimpis0m6qd7c7k1n65a0qhrslli1";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/gonum/mathext";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/gonum/mathext";
|
||||
rev = "8a4bf007ea55";
|
||||
sha256 = "044xy32mgcjc5948na6f6fgqqq17canw3z6sppidmj52s17p0k7i";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/gonum/matrix";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/gonum/matrix";
|
||||
rev = "c518dec07be9";
|
||||
sha256 = "0i6pyxxhcy2s9as77g90dsj9xya48775dl5fxgvqal665cxc4l4i";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/gonum/stat";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/gonum/stat";
|
||||
rev = "41a0da705a5b";
|
||||
sha256 = "0r9mqiy3ma0c15p57bz4xq2vf105s9g1lqysb7ff0nip4050cpvn";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/google/go-cmp";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/google/go-cmp";
|
||||
rev = "v0.2.0";
|
||||
sha256 = "1fbv0x27k9sn8svafc0hjwsnckk864lv4yi7bvzrxvmd3d5hskds";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/influxdata/tdigest";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/influxdata/tdigest";
|
||||
rev = "a7d76c6f093a";
|
||||
sha256 = "02jxrb2d1n6zflwa7jhgid5344l6zj4gxg4kis20v7xa6iqrj1ni";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/mailru/easyjson";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/mailru/easyjson";
|
||||
rev = "v0.7.0";
|
||||
sha256 = "13zv5fvjp3nr65lhqhiw6i6mlmqvyls882rlmcas0ab35alsxni8";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/miekg/dns";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/miekg/dns";
|
||||
rev = "v1.1.17";
|
||||
sha256 = "0x0375n7n1qmgyn7yvpr65z4ll4l39q2xagyfafw09h3kkrkpka8";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/streadway/quantile";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/streadway/quantile";
|
||||
rev = "b0c588724d25";
|
||||
sha256 = "1y27nrg7wkyrvw07a5s7wl4lpwxshwyvhzc6i0rzn20dajah2vkh";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/tsenart/go-tsz";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/tsenart/go-tsz";
|
||||
rev = "cdeb9e1e981e";
|
||||
sha256 = "1lgnllx810ly0203jn9vkimcwqv3302mnh9d7mip1yyq4cmvlj3b";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "golang.org/x/crypto";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/crypto";
|
||||
rev = "9756ffdc2472";
|
||||
sha256 = "0q7hxaaq6lp0v8qqzifvysl47z5rfdlrxkh3d29vsl3wyby3dxl8";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "golang.org/x/net";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/net";
|
||||
rev = "ba9fcec4b297";
|
||||
sha256 = "1hbqvy6r0s5h0dpdqw8fynl3cq0acin3iyqki9xvl5r8h33yb9bx";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "golang.org/x/sync";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/sync";
|
||||
rev = "112230192c58";
|
||||
sha256 = "05i2k43j2d0llq768hg5pf3hb2yhfzp9la1w5wp0rsnnzblr0lfn";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "golang.org/x/sys";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/sys";
|
||||
rev = "749cb33beabd";
|
||||
sha256 = "0dm3257q3rv2kyn5lmqqim2fqg634v6rhrqq4glvbk4wx4l3v337";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "golang.org/x/text";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/text";
|
||||
rev = "v0.3.2";
|
||||
sha256 = "0flv9idw0jm5nm8lx25xqanbkqgfiym6619w575p7nrdh0riqwqh";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "golang.org/x/tools";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/tools";
|
||||
rev = "2ca718005c18";
|
||||
sha256 = "1nl4cw8vrfigab0hij86vl2mmhfmyim69r7vy5qk2v60g8frvgxg";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "golang.org/x/xerrors";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/xerrors";
|
||||
rev = "a985d3407aa7";
|
||||
sha256 = "00wzr5w8aadipgc3rkk8f11i41znskfj9ix5nhhaxyg7isrslgcj";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "pgregory.net/rapid";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/flyingmutant/rapid";
|
||||
rev = "v0.3.3";
|
||||
sha256 = "04w4dmx753b2xp5z5br5wxalgkkgag8qpbxics2gdcksqgi85vg3";
|
||||
};
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user