diff options
author | Rushmore Mushambi <rushmore@webenchanter.com> | 2017-06-18 00:46:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-18 00:46:24 +0200 |
commit | e1ec8d9e9cf49f845584ddd83f4bfd438c98cfc3 (patch) | |
tree | 6c429cf0bd3f71d8fa154e0837ecfc444b200c69 /pkgs | |
parent | 10493d393acc12b83e148b31d75c6f355d4a7e53 (diff) | |
parent | ec65ef744bfef934cea0374122d830d4c3656223 (diff) |
Merge pull request #26658 from rushmorem/cockroach
cockroachdb: beta-20160915 -> v1.0.2
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/sql/cockroachdb/default.nix | 37 | ||||
-rw-r--r-- | pkgs/servers/sql/cockroachdb/deps.nix | 471 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
3 files changed, 24 insertions, 488 deletions
diff --git a/pkgs/servers/sql/cockroachdb/default.nix b/pkgs/servers/sql/cockroachdb/default.nix index 0a5e0d170403..01f92dfa2b99 100644 --- a/pkgs/servers/sql/cockroachdb/default.nix +++ b/pkgs/servers/sql/cockroachdb/default.nix @@ -1,27 +1,36 @@ -{ stdenv, buildGoPackage, fetchFromGitHub, gcc }: +{ stdenv, buildGoPackage, fetchurl, cmake, xz, which }: buildGoPackage rec { name = "cockroach-${version}"; - version = "beta-20160915"; + version = "v1.0.2"; goPackagePath = "github.com/cockroachdb/cockroach"; - subPackages = [ "." ]; - src = fetchFromGitHub { - owner = "cockroachdb"; - repo = "cockroach"; - rev = version; - sha256 = "11camp588vsccxlc138l7x4qws2fj5wpx1177irzayqdng8dilx3"; + src = fetchurl { + url = "https://binaries.cockroachdb.com/cockroach-${version}.src.tgz"; + sha256 = "0xq5lg9a2lxn89lilq3zzcd4kph0a5sga3b5bb9xv6af87igy6zp"; }; - buildFlagsArray = '' - -ldflags= - -X github.com/cockroachdb/cockroach/build.tag=${version} - ''; + buildInputs = [ cmake xz which ]; - buildInputs = [ gcc ]; + buildPhase = + '' + cd $NIX_BUILD_TOP/go/src/${goPackagePath} + patchShebangs ./ + make buildoss + cd src/${goPackagePath} + for asset in man autocomplete; do + ./cockroach gen $asset + done + ''; - goDeps = ./deps.nix; + installPhase = + '' + mkdir -p $bin/{bin,share,etc/bash_completion.d} + mv cockroach $bin/bin + mv man $bin/share + mv cockroach.bash $bin/etc/bash_completion.d + ''; meta = with stdenv.lib; { homepage = https://www.cockroachlabs.com; diff --git a/pkgs/servers/sql/cockroachdb/deps.nix b/pkgs/servers/sql/cockroachdb/deps.nix deleted file mode 100644 index da2ab57f91a1..000000000000 --- a/pkgs/servers/sql/cockroachdb/deps.nix +++ /dev/null @@ -1,471 +0,0 @@ -# This file was generated by go2nix. -[ - { - goPackagePath = "github.com/VividCortex/ewma"; - fetch = { - type = "git"; - url = "https://github.com/VividCortex/ewma"; - rev = "8b9f1311551e712ea8a06b494238b8a2351e1c33"; - sha256 = "1w8gf6310dxl57jdq1b04wbh4ssb0nvck3926bbd86mnw78z0byl"; - }; - } - { - goPackagePath = "github.com/backtrace-labs/go-bcd"; - fetch = { - type = "git"; - url = "https://github.com/backtrace-labs/go-bcd"; - rev = "c5383e2df7004f8b2fb2f10a33167d757bb0fbfb"; - sha256 = "0v7al14ql8vddj8bw2yp1pp47nfdhq6vglbv6fmpg5sf5yfsp9xa"; - }; - } - { - goPackagePath = "github.com/biogo/store"; - fetch = { - type = "git"; - url = "https://github.com/biogo/store"; - rev = "913427a1d5e89604e50ea1db0f28f34966d61602"; - sha256 = "0xgz1g9digvvw64rmzw90a6iyxlljiiz2i1x0x0d8mw4wyaxcipz"; - }; - } - { - goPackagePath = "github.com/cenk/backoff"; - fetch = { - type = "git"; - url = "https://github.com/cenk/backoff"; - rev = "cdf48bbc1eb78d1349cbda326a4a037f7ba565c6"; - sha256 = "0dg7hvpv0a1db8qriygz1jqgp16v8k505b197x9902z7z6lldgbh"; - }; - } - { - goPackagePath = "github.com/chzyer/readline"; - fetch = { - type = "git"; - url = "https://github.com/chzyer/readline"; - rev = "a193146c91dea4b6cf30f355e99fb85f73d20f07"; - sha256 = "0amg5p3xadmj4p58f63f8kkggs9q3f3jhi7ijzb79grbg1lj2rj2"; - }; - } - { - goPackagePath = "github.com/cockroachdb/c-jemalloc"; - fetch = { - type = "git"; - url = "https://github.com/cockroachdb/c-jemalloc"; - rev = "42e6a32cd7a4dff9c70d80323681d46d046181ef"; - sha256 = "16ddzw35xj2vz8324mac5bhhr9akvjrg14lgq2mn5nfw1zs42r7n"; - }; - } - { - goPackagePath = "github.com/cockroachdb/c-protobuf"; - fetch = { - type = "git"; - url = "https://github.com/cockroachdb/c-protobuf"; - rev = "951f3e665896e7ba939fd1f2db9aeaae6ca988f8"; - sha256 = "032ncrq4p48riwk8zj6p3rp65p87k9793lg107ja6mf8nx0v3z3l"; - }; - } - { - goPackagePath = "github.com/cockroachdb/c-rocksdb"; - fetch = { - type = "git"; - url = "https://github.com/cockroachdb/c-rocksdb"; - rev = "b5ca031b93fde49bfa2ba99aba423136aebf3c06"; - sha256 = "1vwq8fbcgwvq2mqv1vwm3b671iklg26s7zd3bgxr5rl076mhn6s5"; - }; - } - { - goPackagePath = "github.com/cockroachdb/c-snappy"; - fetch = { - type = "git"; - url = "https://github.com/cockroachdb/c-snappy"; - rev = "d4e7b428fe7fc09e93573df3448567a62df8c9fa"; - sha256 = "09c1pnks51ypvqh97yf9mvi034cc3bb8dj3vkl9v959pg5ix91g4"; - }; - } - { - goPackagePath = "github.com/cockroachdb/cmux"; - fetch = { - type = "git"; - url = "https://github.com/cockroachdb/cmux"; - rev = "b64f5908f4945f4b11ed4a0a9d3cc1e23350866d"; - sha256 = "1by4f3x7j3r3z1sdx1v04r494hn6jaag7lc03prrgx455j8i0jlh"; - }; - } - { - goPackagePath = "github.com/cockroachdb/cockroach"; - fetch = { - type = "git"; - url = "https://github.com/cockroachdb/cockroach"; - rev = "3fff05767cd3eda2197ce102391c0de447fef606"; - sha256 = "11camp588vsccxlc138l7x4qws2fj5wpx1177irzayqdng8dilx3"; - }; - } - { - goPackagePath = "github.com/cockroachdb/pq"; - fetch = { - type = "git"; - url = "https://github.com/cockroachdb/pq"; - rev = "40c6b2414c76cdb84aacc955f79dc844e48ad0c0"; - sha256 = "16pnyndzlsk5rbbrimpkg6mf9w2qf0z64pk2k70ja4a65kihlw9g"; - }; - } - { - goPackagePath = "github.com/codahale/hdrhistogram"; - fetch = { - type = "git"; - url = "https://github.com/codahale/hdrhistogram"; - rev = "f8ad88b59a584afeee9d334eff879b104439117b"; - sha256 = "1y1llqaczhc5hqa71pwa1ns8nchizpl678lp23vl51c04swn8h8n"; - }; - } - { - goPackagePath = "github.com/coreos/etcd"; - fetch = { - type = "git"; - url = "https://github.com/coreos/etcd"; - rev = "656167d760543d442eae62f0c8c4f92c05f59508"; - sha256 = "1v4bwfh7ziklfcdapnyky00gjivcn1n30b72pwmbdlk7283p555k"; - }; - } - { - goPackagePath = "github.com/cpuguy83/go-md2man"; - fetch = { - type = "git"; - url = "https://github.com/cpuguy83/go-md2man"; - rev = "2724a9c9051aa62e9cca11304e7dd518e9e41599"; - sha256 = "1j2bigs7ixy20cdqd246nxr417md2qcyvkfk3x94992cr88d0vyj"; - }; - } - { - goPackagePath = "github.com/dustin/go-humanize"; - fetch = { - type = "git"; - url = "https://github.com/dustin/go-humanize"; - rev = "2fcb5204cdc65b4bec9fd0a87606bb0d0e3c54e8"; - sha256 = "1m2qgn5vh5m66ggmclgikvwc05np2r7sxgpvlj2jip5d61x29j5k"; - }; - } - { - goPackagePath = "github.com/elastic/gosigar"; - fetch = { - type = "git"; - url = "https://github.com/elastic/gosigar"; - rev = "7c0ce0d4814c8d4950d7e7f40ed3b6359e757875"; - sha256 = "1nar7jia3xfgwnvazp25m9b0kxxklarrq9fzdr63j3nqy2fnwvca"; - }; - } - { - goPackagePath = "github.com/elazarl/go-bindata-assetfs"; - fetch = { - type = "git"; - url = "https://github.com/elazarl/go-bindata-assetfs"; - rev = "e1a2a7ec64b07d04ac9ebb072404fe8b7b60de1b"; - sha256 = "0b6q8h9fwpgpkvml1j87wq9174g7px1dmskhm884drpvswda2djk"; - }; - } - { - goPackagePath = "github.com/facebookgo/clock"; - fetch = { - type = "git"; - url = "https://github.com/facebookgo/clock"; - rev = "600d898af40aa09a7a93ecb9265d87b0504b6f03"; - sha256 = "1z3jxwsqll65il7rcdx5j4dggg6w143z24h3agk09xvsc2iyj7a2"; - }; - } - { - goPackagePath = "github.com/gogo/protobuf"; - fetch = { - type = "git"; - url = "https://github.com/gogo/protobuf"; - rev = "a4cceea7a401a73fefafd1a21fedbd4694124a82"; - sha256 = "1b23izdgxlz010qrqgazm5yg0bc3pkni1qdf8n3z3xcn58hcx2yg"; - }; - } - { - goPackagePath = "github.com/golang/protobuf"; - fetch = { - type = "git"; - url = "https://github.com/golang/protobuf"; - rev = "2c1988e8c18d14b142c0b472624f71647cf39adb"; - sha256 = "176x3yv6l0i49ddv73r9v6w9qcmgrfzy8db26r01yk7sczq75nd5"; - }; - } - { - goPackagePath = "github.com/google/btree"; - fetch = { - type = "git"; - url = "https://github.com/google/btree"; - rev = "7d79101e329e5a3adf994758c578dab82b90c017"; - sha256 = "1c1hsy5s2pfawg3l9954jmqmy4yc2zp3f7i87m00km2yqgb8xpd0"; - }; - } - { - goPackagePath = "github.com/grpc-ecosystem/grpc-gateway"; - fetch = { - type = "git"; - url = "https://github.com/grpc-ecosystem/grpc-gateway"; - rev = "ccd4e6b091a44f9f6b32848ffc63b3e8f8e26092"; - sha256 = "0nl9hddmxw2s4cqpg70k1913fna101lxrha6dgplw8g8rjikfna4"; - }; - } - { - goPackagePath = "github.com/julienschmidt/httprouter"; - fetch = { - type = "git"; - url = "https://github.com/julienschmidt/httprouter"; - rev = "d8ff598a019f2c7bad0980917a588193cf26666e"; - sha256 = "11sdd5fi2w0szk850n4y35x4v2ndy62c3ss9alha5xcj4jh1j0yq"; - }; - } - { - goPackagePath = "github.com/kr/pretty"; - fetch = { - type = "git"; - url = "https://github.com/kr/pretty"; - rev = "737b74a46c4bf788349f72cb256fed10aea4d0ac"; - sha256 = "13bip4vamvij8dx0v0nhrikz6qhsimd0w4i55424c76ws6ph84i8"; - }; - } - { - goPackagePath = "github.com/kr/text"; - fetch = { - type = "git"; - url = "https://github.com/kr/text"; - rev = "7cafcd837844e784b526369c9bce262804aebc60"; - sha256 = "0br693pf6vdr1sfvzdz6zxq7hjpdgci0il4wj0v636r8lyy21vsx"; - }; - } - { - goPackagePath = "github.com/lib/pq"; - fetch = { - type = "git"; - url = "https://github.com/lib/pq"; - rev = "80f8150043c80fb52dee6bc863a709cdac7ec8f8"; - sha256 = "0brk4di63f56x9fsidn8dk7c2azan1kjzrli79h262j9pd17c3jm"; - }; - } - { - goPackagePath = "github.com/lightstep/lightstep-tracer-go"; - fetch = { - type = "git"; - url = "https://github.com/lightstep/lightstep-tracer-go"; - rev = "f3c66066ce6023ad1bd721cfbd9fbd6292eb08cc"; - sha256 = "1ci38j6d3spy2279l6anxxvm7k85h4fr08pdfw9ghrv96ajmaizb"; - }; - } - { - goPackagePath = "github.com/mattn/go-isatty"; - fetch = { - type = "git"; - url = "https://github.com/mattn/go-isatty"; - rev = "66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8"; - sha256 = "17lf13ndnai9a6dlmykqkdyzf1z04q7kffs0l7kvd78wpv3l6rm5"; - }; - } - { - goPackagePath = "github.com/mattn/go-runewidth"; - fetch = { - type = "git"; - url = "https://github.com/mattn/go-runewidth"; - rev = "d6bea18f789704b5f83375793155289da36a3c7f"; - sha256 = "1hnigpn7rjbwd1ircxkyx9hvi0xmxr32b2jdy2jzw6b3jmcnz1fs"; - }; - } - { - 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/olekukonko/tablewriter"; - fetch = { - type = "git"; - url = "https://github.com/olekukonko/tablewriter"; - rev = "daf2955e742cf123959884fdff4685aa79b63135"; - sha256 = "1fvl251ms7qmzfbi853kdgghqkrmyy6n1605mfy50nhgvw03z203"; - }; - } - { - goPackagePath = "github.com/opentracing/basictracer-go"; - fetch = { - type = "git"; - url = "https://github.com/opentracing/basictracer-go"; - rev = "c7c0202a8a77f658aeb2193a27b6c0cfcc821038"; - sha256 = "09mh7dlhr3lyw8kwpa07ywjzr3bg7847ky4hvx551lhyqk0bfv0l"; - }; - } - { - goPackagePath = "github.com/opentracing/opentracing-go"; - fetch = { - type = "git"; - url = "https://github.com/opentracing/opentracing-go"; - rev = "855519783f479520497c6b3445611b05fc42f009"; - sha256 = "15amxprc5n0dgr42jd1lkcn697m7pcvmksps9g1gw38ahyicxq8g"; - }; - } - { - goPackagePath = "github.com/petermattis/goid"; - fetch = { - type = "git"; - url = "https://github.com/petermattis/goid"; - rev = "208e1c5be6bf38853827abdc6290b5f6a0c404d5"; - sha256 = "0d511pdyrv9lkzq04agnm7019c1769vmdq8kyh66pq2np1x6jsl2"; - }; - } - { - goPackagePath = "github.com/pkg/errors"; - fetch = { - type = "git"; - url = "https://github.com/pkg/errors"; - rev = "a22138067af1c4942683050411a841ade67fe1eb"; - sha256 = "0fay1zxi8y4kj1q33mqxdsbicg9cplknnmzz87c9saq7rb4k6f36"; - }; - } - { - goPackagePath = "github.com/prometheus/client_model"; - fetch = { - type = "git"; - url = "https://github.com/prometheus/client_model"; - rev = "fa8ad6fec33561be4280a8f0514318c79d7f6cb6"; - sha256 = "11a7v1fjzhhwsl128znjcf5v7v6129xjgkdpym2lial4lac1dhm9"; - }; - } - { - goPackagePath = "github.com/prometheus/common"; - fetch = { - type = "git"; - url = "https://github.com/prometheus/common"; - rev = "ebdfc6da46522d58825777cf1f90490a5b1ef1d8"; - sha256 = "0js62pj8600773wx6labpd772yyhz5ivim7dnl7b862wblbmc8mq"; - }; - } - { - goPackagePath = "github.com/rcrowley/go-metrics"; - fetch = { - type = "git"; - url = "https://github.com/rcrowley/go-metrics"; - rev = "bdb33529eca3e55eac7328e07c57012a797af602"; - sha256 = "146hfddgdi8rkg25v1f25klz3sy5slp0gny2lwjyi63jwly07512"; - }; - } - { - goPackagePath = "github.com/rubyist/circuitbreaker"; - fetch = { - type = "git"; - url = "https://github.com/rubyist/circuitbreaker"; - rev = "7e3e7fbe9c62b943d487af023566a79d9eb22d3b"; - sha256 = "01fshh514bq2bk7f6xv7zr781m23d3k1mla1lh8azqw5874m7a07"; - }; - } - { - goPackagePath = "github.com/russross/blackfriday"; - fetch = { - type = "git"; - url = "https://github.com/russross/blackfriday"; - rev = "93622da34e54fb6529bfb7c57e710f37a8d9cbd8"; - sha256 = "19y4cx4afm3fjj7w83g0wklbzqdjm7m1j5nq64l4yq8bi50y2iv2"; - }; - } - { - goPackagePath = "github.com/satori/go.uuid"; - fetch = { - type = "git"; - url = "https://github.com/satori/go.uuid"; - rev = "0aa62d5ddceb50dbcb909d790b5345affd3669b6"; - sha256 = "1vfzfcspanxcbpdpv49580rh6kamzcs3lm70xnx724mkwi41zi8w"; - }; - } - { - goPackagePath = "github.com/shurcooL/sanitized_anchor_name"; - fetch = { - type = "git"; - url = "https://github.com/shurcooL/sanitized_anchor_name"; - rev = "10ef21a441db47d8b13ebcc5fd2310f636973c77"; - sha256 = "1cnbzcf47cn796rcjpph1s64qrabhkv5dn9sbynsy7m9zdwr5f01"; - }; - } - { - goPackagePath = "github.com/spf13/cobra"; - fetch = { - type = "git"; - url = "https://github.com/spf13/cobra"; - rev = "7c674d9e72017ed25f6d2b5e497a1368086b6a6f"; - sha256 = "0an935r7lc11a744mvdrsy56rs2w0ah3gdclvr4gzd5iqr9ap3dr"; - }; - } - { - goPackagePath = "github.com/spf13/pflag"; - fetch = { - type = "git"; - url = "https://github.com/spf13/pflag"; - rev = "f676131e2660dc8cd88de99f7486d34aa8172635"; - sha256 = "0gj4fpary501n32ag49mkd0vymqw01am0lv78l9db9dvd2im0i4m"; - }; - } - { - goPackagePath = "golang.org/x/crypto"; - fetch = { - type = "git"; - url = "https://go.googlesource.com/crypto"; - rev = "a548aac93ed489257b9d959b40fe1e8c1e20778c"; - sha256 = "022vl9s6hf8qzdrxfivzd3dg1gsr1vns0j3a3xfdkgv5z9qyvy83"; - }; - } - { - goPackagePath = "golang.org/x/net"; - fetch = { - type = "git"; - url = "https://go.googlesource.com/net"; - rev = "07b51741c1d6423d4a6abab1c49940ec09cb1aaf"; - sha256 = "12lvdj0k2gww4hw5f79qb9yswqpy4i3bgv1likmf3mllgdxfm20w"; - }; - } - { - goPackagePath = "golang.org/x/sys"; - fetch = { - type = "git"; - url = "https://go.googlesource.com/sys"; - rev = "a646d33e2ee3172a661fc09bca23bb4889a41bc8"; - sha256 = "1jniqg2nv5zhdzfm9gwfx0s9q8mwxrgcxdbkd6cddk9w0qgji9dc"; - }; - } - { - goPackagePath = "golang.org/x/text"; - fetch = { - type = "git"; - url = "https://go.googlesource.com/text"; - rev = "2910a502d2bf9e43193af9d68ca516529614eed3"; - sha256 = "1h2bxzsnqksnvrk2lplpqzzpp9m9zmd6f2aajyahc56bxb1804jq"; - }; - } - { - goPackagePath = "google.golang.org/grpc"; - fetch = { - type = "git"; - url = "https://github.com/grpc/grpc-go"; - rev = "79b7c349179cdd6efd8bac4a1ce7f01b98c16e9b"; - sha256 = "0w2g3pcxxgnp3fk0qy7ail8mxdxv3cf1yavdx8rrjn9idyd261df"; - }; - } - { - goPackagePath = "gopkg.in/inf.v0"; - fetch = { - type = "git"; - url = "https://gopkg.in/inf.v0"; - rev = "3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4"; - sha256 = "0rf3vwyb8aqnac9x9d6ax7z5526c45a16yjm2pvkijr6qgqz8b82"; - }; - } - { - goPackagePath = "gopkg.in/yaml.v1"; - fetch = { - type = "git"; - url = "https://gopkg.in/yaml.v1"; - rev = "9f9df34309c04878acc86042b16630b0f696e1de"; - sha256 = "1r8d346szqa9x8q03wiycik5qy3d6w8qq4hs99z1p64q5lm0g7gm"; - }; - } -] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 672ae0acdbd2..8190a045dcdc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11548,9 +11548,7 @@ with pkgs; cifs-utils = callPackage ../os-specific/linux/cifs-utils { }; - cockroachdb = callPackage ../servers/sql/cockroachdb { - gcc = gcc6; # needs gcc 6.0 and above - }; + cockroachdb = callPackage ../servers/sql/cockroachdb { }; conky = callPackage ../os-specific/linux/conky ({ lua = lua5_1; # conky can use 5.2, but toluapp can not |