Merge pull request #28529 from sigma/pr/dgraph-0.8.1

dgraph: init at 0.8.1

authored by Jörg Thalheim and committed by GitHub ba16b4eb d444c005

+376
+48
pkgs/servers/dgraph/default.nix
···
··· 1 + { stdenv, buildGoPackage, fetchFromGitHub }: 2 + 3 + buildGoPackage rec { 4 + name = "dgraph-${version}"; 5 + version = "0.8.1"; 6 + 7 + goPackagePath = "github.com/dgraph-io/dgraph"; 8 + 9 + src = fetchFromGitHub { 10 + owner = "dgraph-io"; 11 + repo = "dgraph"; 12 + rev = "v${version}"; 13 + sha256 = "1gls2pvgcmd364x84gz5fafs7pwkll4k352rg1lmv70wvzyydsdr"; 14 + }; 15 + 16 + extraOutputsToInstall = [ "dashboard" ]; 17 + 18 + goDeps = ./deps.nix; 19 + subPackages = [ "cmd/dgraph" "cmd/dgraphloader" ]; 20 + 21 + # let's move the dashboard to a different output, to prevent $bin from 22 + # depending on $out 23 + # TODO: provide a proper npm application for the dashboard. 24 + postPatch = '' 25 + mv dashboard/* $dashboard 26 + ''; 27 + 28 + preBuild = '' 29 + export buildFlagsArray="-ldflags=\ 30 + -X github.com/dgraph-io/dgraph/x.dgraphVersion=${version} \ 31 + -X github.com/dgraph-io/dgraph/cmd/dgraph/main.uiDir=$dashboard/src/assets/" 32 + ''; 33 + 34 + preFixup = stdenv.lib.optionalString stdenv.isDarwin '' 35 + # Somehow on Darwin, $out/lib (which doesn't exist) ends up in RPATH. 36 + # Removing it fixes cycle between $out and $bin 37 + install_name_tool -delete_rpath $out/lib $bin/bin/dgraph 38 + install_name_tool -delete_rpath $out/lib $bin/bin/dgraphloader 39 + ''; 40 + 41 + meta = { 42 + homepage = "https://dgraph.io/"; 43 + description = "Fast, Distributed Graph DB"; 44 + maintainers = with stdenv.lib.maintainers; [ sigma ]; 45 + license = stdenv.lib.licenses.agpl3; 46 + platforms = stdenv.lib.platforms.unix; 47 + }; 48 + }
+326
pkgs/servers/dgraph/deps.nix
···
··· 1 + [ 2 + { 3 + goPackagePath = "github.com/AndreasBriese/bbloom"; 4 + fetch = { 5 + type = "git"; 6 + url = "https://github.com/AndreasBriese/bbloom"; 7 + rev = "28f7e881ca57bc00e028f9ede9f0d9104cfeef5e"; 8 + sha256 = "03cqhqvdz8c9by5w5ls4kwnnwlm6b2kkslc6m120fanw1lgamfzp"; 9 + }; 10 + } 11 + { 12 + goPackagePath = "github.com/MakeNowJust/heredoc"; 13 + fetch = { 14 + type = "git"; 15 + url = "https://github.com/MakeNowJust/heredoc"; 16 + rev = "1d91351acdc1cb2f2c995864674b754134b86ca7"; 17 + sha256 = "0ia1r8ibqmx6zv3wmsvgkpqlhwk79z9l38nzp4gd4f1kcb46856x"; 18 + }; 19 + } 20 + { 21 + goPackagePath = "github.com/beorn7/perks"; 22 + fetch = { 23 + type = "git"; 24 + url = "https://github.com/beorn7/perks"; 25 + rev = "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9"; 26 + sha256 = "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y"; 27 + }; 28 + } 29 + { 30 + goPackagePath = "github.com/bkaradzic/go-lz4"; 31 + fetch = { 32 + type = "git"; 33 + url = "https://github.com/bkaradzic/go-lz4"; 34 + rev = "7224d8d8f27ef618c0a95f1ae69dbb0488abc33a"; 35 + sha256 = "10lmya17vdqg2pvqni0p73iahni48s1v11ya9a0hcz4jh5vw4dkb"; 36 + }; 37 + } 38 + { 39 + goPackagePath = "github.com/blevesearch/bleve"; 40 + fetch = { 41 + type = "git"; 42 + url = "https://github.com/blevesearch/bleve"; 43 + rev = "a7ebb8480579777c6cd1c4750d2e6b5ff2b49bdd"; 44 + sha256 = "121jhd158slf4050kmghz25jrvv7gbsan31wr0nxyw9z32lyf6yx"; 45 + }; 46 + } 47 + { 48 + goPackagePath = "github.com/blevesearch/blevex"; 49 + fetch = { 50 + type = "git"; 51 + url = "https://github.com/blevesearch/blevex"; 52 + rev = "507dcd576550f9f3260f11495ba2de4e96773a3e"; 53 + sha256 = "0i9azysvia99fjpx525qnc5rcgv45hfvl3zcs58gvgqyxpzpc78z"; 54 + }; 55 + } 56 + { 57 + goPackagePath = "github.com/blevesearch/go-porterstemmer"; 58 + fetch = { 59 + type = "git"; 60 + url = "https://github.com/blevesearch/go-porterstemmer"; 61 + rev = "23a2c8e5cf1f380f27722c6d2ae8896431dc7d0e"; 62 + sha256 = "0rcfbrad79xd114h3dhy5d3zs3b5bcgqwm3h5ih1lk69zr9wi91d"; 63 + }; 64 + } 65 + { 66 + goPackagePath = "github.com/blevesearch/segment"; 67 + fetch = { 68 + type = "git"; 69 + url = "https://github.com/blevesearch/segment"; 70 + rev = "762005e7a34fd909a84586299f1dd457371d36ee"; 71 + sha256 = "1nrm145sm0xlhqy3d12yipnb16ikjz9ykjcskmkgm7vjm47xkmfl"; 72 + }; 73 + } 74 + { 75 + goPackagePath = "github.com/cockroachdb/cmux"; 76 + fetch = { 77 + type = "git"; 78 + url = "https://github.com/cockroachdb/cmux"; 79 + rev = "30d10be492927e2dcae0089c374c455d42414fcb"; 80 + sha256 = "0ixif6hwcm2dpi1si5ah49dmdyy5chillz1048jpvjzwzxyfv1nx"; 81 + }; 82 + } 83 + { 84 + goPackagePath = "github.com/codahale/hdrhistogram"; 85 + fetch = { 86 + type = "git"; 87 + url = "https://github.com/codahale/hdrhistogram"; 88 + rev = "3a0bb77429bd3a61596f5e8a3172445844342120"; 89 + sha256 = "1zampgfjbxy192cbwdi7g86l1idxaam96d834wncnpfdwgh5kl57"; 90 + }; 91 + } 92 + { 93 + goPackagePath = "github.com/coreos/etcd"; 94 + fetch = { 95 + type = "git"; 96 + url = "https://github.com/coreos/etcd"; 97 + rev = "1ebeef5cbfe69c0dab2bc701ee5307eed7a7d8d2"; 98 + sha256 = "12lidn1a8nwsk6nlwyfirrxkxhs4lhj53f4cd19xm8w070q0mg19"; 99 + }; 100 + } 101 + { 102 + goPackagePath = "github.com/davecgh/go-spew"; 103 + fetch = { 104 + type = "git"; 105 + url = "https://github.com/davecgh/go-spew"; 106 + rev = "6d212800a42e8ab5c146b8ace3490ee17e5225f9"; 107 + sha256 = "01i0n1s4j7khb7n6mz2wymniz37q0vbzkgfv7rbi6p9hpg227q93"; 108 + }; 109 + } 110 + { 111 + goPackagePath = "github.com/dgraph-io/badger"; 112 + fetch = { 113 + type = "git"; 114 + url = "https://github.com/dgraph-io/badger"; 115 + rev = "ad23a425b3c87b8223780cb882bed568ca14b9f0"; 116 + sha256 = "1xjd05vska1kanmgdhp5cvkn2i6236rqphrc9i4kfjndgwkmas57"; 117 + }; 118 + } 119 + { 120 + goPackagePath = "github.com/dgryski/go-farm"; 121 + fetch = { 122 + type = "git"; 123 + url = "https://github.com/dgryski/go-farm"; 124 + rev = "d1e51a4af19092715f4ce7d8257fe5bc8f8be727"; 125 + sha256 = "00iijjzdg8g6jbzhdbfw8s2rf0k25gxw4x7h7r6mkxcq18n69182"; 126 + }; 127 + } 128 + { 129 + goPackagePath = "github.com/gogo/protobuf"; 130 + fetch = { 131 + type = "git"; 132 + url = "https://github.com/gogo/protobuf"; 133 + rev = "e57a569e1882958f6b188cb42231d6db87701f2a"; 134 + sha256 = "0r3jpmp6wp4xyrh1ikr8iqld3rg4r1yhv99zxw5zd7d2zprw9yfc"; 135 + }; 136 + } 137 + { 138 + goPackagePath = "github.com/golang/geo"; 139 + fetch = { 140 + type = "git"; 141 + url = "https://github.com/golang/geo"; 142 + rev = "3a42ea109208469f16baf9e090135dd0e82ece5c"; 143 + sha256 = "1fzlakjj94gv516q7gd9qycn91lij7wmjbdv0vsrh6qnxvgqr8hw"; 144 + }; 145 + } 146 + { 147 + goPackagePath = "github.com/golang/protobuf"; 148 + fetch = { 149 + type = "git"; 150 + url = "https://github.com/golang/protobuf"; 151 + rev = "2bba0603135d7d7f5cb73b2125beeda19c09f4ef"; 152 + sha256 = "1xy0bj66qks2xlzxzlfma16w7m8g6rrwawmlhlv68bcw2k5hvvib"; 153 + }; 154 + } 155 + { 156 + goPackagePath = "github.com/google/codesearch"; 157 + fetch = { 158 + type = "git"; 159 + url = "https://github.com/google/codesearch"; 160 + rev = "a45d81b686e85d01f2838439deaf72126ccd5a96"; 161 + sha256 = "12bv3yz0l3bmsxbasfgv7scm9j719ch6pmlspv4bd4ix7wjpyhny"; 162 + }; 163 + } 164 + { 165 + goPackagePath = "github.com/matttproud/golang_protobuf_extensions"; 166 + fetch = { 167 + type = "git"; 168 + url = "https://github.com/matttproud/golang_protobuf_extensions"; 169 + rev = "c12348ce28de40eed0136aa2b644d0ee0650e56c"; 170 + sha256 = "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya"; 171 + }; 172 + } 173 + { 174 + goPackagePath = "github.com/pkg/errors"; 175 + fetch = { 176 + type = "git"; 177 + url = "https://github.com/pkg/errors"; 178 + rev = "17b591df37844cde689f4d5813e5cea0927d8dd2"; 179 + sha256 = "1f400f1682h1wdjknlh1ad95rbss09g0ia36a8w102bf2f1qfq8l"; 180 + }; 181 + } 182 + { 183 + goPackagePath = "github.com/pkg/profile"; 184 + fetch = { 185 + type = "git"; 186 + url = "https://github.com/pkg/profile"; 187 + rev = "5b67d428864e92711fcbd2f8629456121a56d91f"; 188 + sha256 = "0blqmvgqvdbqmh3fp9pfdxc9w1qfshrr0zy9whj0sn372bw64qnr"; 189 + }; 190 + } 191 + { 192 + goPackagePath = "github.com/pmezard/go-difflib"; 193 + fetch = { 194 + type = "git"; 195 + url = "https://github.com/pmezard/go-difflib"; 196 + rev = "792786c7400a136282c1664665ae0a8db921c6c2"; 197 + sha256 = "0c1cn55m4rypmscgf0rrb88pn58j3ysvc2d0432dp3c6fqg6cnzw"; 198 + }; 199 + } 200 + { 201 + goPackagePath = "github.com/prometheus/client_golang"; 202 + fetch = { 203 + type = "git"; 204 + url = "https://github.com/prometheus/client_golang"; 205 + rev = "310ce84375bb84c5cbbf0d05069c92daa5673740"; 206 + sha256 = "11awb5bjkwqj7va3v7fgniwqkjqhmhjkp01rdvnv4xfp1laxwn7v"; 207 + }; 208 + } 209 + { 210 + goPackagePath = "github.com/prometheus/client_model"; 211 + fetch = { 212 + type = "git"; 213 + url = "https://github.com/prometheus/client_model"; 214 + rev = "6f3806018612930941127f2a7c6c453ba2c527d2"; 215 + sha256 = "1413ibprinxhni51p0755dp57r9wvbw7xgj9nmdaxmhzlqhc86j4"; 216 + }; 217 + } 218 + { 219 + goPackagePath = "github.com/prometheus/common"; 220 + fetch = { 221 + type = "git"; 222 + url = "https://github.com/prometheus/common"; 223 + rev = "0866df4b85a18d652b6965be022d007cdf076822"; 224 + sha256 = "0zw4rxs6zh9vgxz5wwhjnwa6mgac8jh7mb63viircgh08r889chp"; 225 + }; 226 + } 227 + { 228 + goPackagePath = "github.com/prometheus/procfs"; 229 + fetch = { 230 + type = "git"; 231 + url = "https://github.com/prometheus/procfs"; 232 + rev = "e645f4e5aaa8506fc71d6edbc5c4ff02c04c46f2"; 233 + sha256 = "18hwygbawbqilz7h8fl25xpbciwalkslb4igqn4cr9d8sqp7d3np"; 234 + }; 235 + } 236 + { 237 + goPackagePath = "github.com/stretchr/testify"; 238 + fetch = { 239 + type = "git"; 240 + url = "https://github.com/stretchr/testify"; 241 + rev = "976c720a22c8eb4eb6a0b4348ad85ad12491a506"; 242 + sha256 = "0a2gxvqzacrj9k8h022zhr8fchhn9afc6a511m07j71dzw9g4y3m"; 243 + }; 244 + } 245 + { 246 + goPackagePath = "github.com/tebeka/snowball"; 247 + fetch = { 248 + type = "git"; 249 + url = "https://github.com/tebeka/snowball"; 250 + rev = "6b06bd306c4e4442a63e546752278920ae487934"; 251 + sha256 = "110akijkb55k5h7m6mra8fircvi4sxd5xq7lcjgyiqj96srq8v2k"; 252 + }; 253 + } 254 + { 255 + goPackagePath = "github.com/twpayne/go-geom"; 256 + fetch = { 257 + type = "git"; 258 + url = "https://github.com/twpayne/go-geom"; 259 + rev = "6753ad11e46b04e21b3f286b342e73a8c4be8216"; 260 + sha256 = "0qyrdnp7j7lmj0qb0p7k45m757zvbwn78s1apiy46zfnb5415df1"; 261 + }; 262 + } 263 + { 264 + goPackagePath = "golang.org/x/crypto"; 265 + fetch = { 266 + type = "git"; 267 + url = "https://go.googlesource.com/crypto"; 268 + rev = "22ddb68eccda408bbf17759ac18d3120ce0d4f3f"; 269 + sha256 = "07ks6qal02iz24vv54qyb90wmsg9vwqc14abf68rakprpy26qwsg"; 270 + }; 271 + } 272 + { 273 + goPackagePath = "golang.org/x/net"; 274 + fetch = { 275 + type = "git"; 276 + url = "https://go.googlesource.com/net"; 277 + rev = "d1e1b351919c6738fdeb9893d5c998b161464f0c"; 278 + sha256 = "0qzbfah03z992zyygfp7imjjas5np2gcar5aanx5y3av5g68ggjp"; 279 + }; 280 + } 281 + { 282 + goPackagePath = "golang.org/x/sys"; 283 + fetch = { 284 + type = "git"; 285 + url = "https://go.googlesource.com/sys"; 286 + rev = "abf9c25f54453410d0c6668e519582a9e1115027"; 287 + sha256 = "0dmpqjfif2zg6776d366js60k21g81jvsr3jm9dc7fv7w3282al4"; 288 + }; 289 + } 290 + { 291 + goPackagePath = "golang.org/x/text"; 292 + fetch = { 293 + type = "git"; 294 + url = "https://go.googlesource.com/text"; 295 + rev = "836efe42bb4aa16aaa17b9c155d8813d336ed720"; 296 + sha256 = "11s7bjk0karl1lx8v4n6dvdnsh702x4f2qlmnqac2qdz8hdswmi1"; 297 + }; 298 + } 299 + { 300 + goPackagePath = "google.golang.org/genproto"; 301 + fetch = { 302 + type = "git"; 303 + url = "https://github.com/google/go-genproto"; 304 + rev = "b0a3dcfcd1a9bd48e63634bd8802960804cf8315"; 305 + sha256 = "0lkj73lyr4dzj2pxgmild0i1bl6kdgrxa3c8m44j5ms537pyxcpr"; 306 + }; 307 + } 308 + { 309 + goPackagePath = "google.golang.org/grpc"; 310 + fetch = { 311 + type = "git"; 312 + url = "https://github.com/grpc/grpc-go"; 313 + rev = "2bb318258959db281674bc6fd67b5167b7ff0d65"; 314 + sha256 = "1g8ir87ksr8549801vdgb0n6rmxws05ky50bkgjv86370h146cqm"; 315 + }; 316 + } 317 + { 318 + goPackagePath = "gopkg.in/yaml.v2"; 319 + fetch = { 320 + type = "git"; 321 + url = "https://gopkg.in/yaml.v2"; 322 + rev = "a5b47d31c556af34a302ce5d659e6fea44d90de0"; 323 + sha256 = "0v6l48fshdjrqzyq1kwn22gy7vy434xdr1i0lm3prsf6jbln9fam"; 324 + }; 325 + } 326 + ]
+2
pkgs/top-level/all-packages.nix
··· 11093 11094 dex-oidc = callPackage ../servers/dex { }; 11095 11096 dico = callPackage ../servers/dico { }; 11097 11098 dict = callPackage ../servers/dict {
··· 11093 11094 dex-oidc = callPackage ../servers/dex { }; 11095 11096 + dgraph = callPackage ../servers/dgraph { }; 11097 + 11098 dico = callPackage ../servers/dico { }; 11099 11100 dict = callPackage ../servers/dict {