commit
3f7af64de1
3 changed files with 304 additions and 0 deletions
30
pkgs/servers/cayley/default.nix
Normal file
30
pkgs/servers/cayley/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "cayley-${version}";
|
||||
version = "0.6.1";
|
||||
|
||||
goPackagePath = "github.com/cayleygraph/cayley";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cayleygraph";
|
||||
repo = "cayley";
|
||||
rev = "v${version}";
|
||||
sha256 = "1r0kw3y32bqm7g37svzrch2qj9n45p93xmsrf7dj1cg4wwkb65ry";
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X=main.Version=${version}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://cayley.io/";
|
||||
description = "A graph database inspired by Freebase and Knowledge Graph";
|
||||
maintainers = with stdenv.lib.maintainers; [ sigma ];
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
272
pkgs/servers/cayley/deps.nix
Normal file
272
pkgs/servers/cayley/deps.nix
Normal file
|
@ -0,0 +1,272 @@
|
|||
[
|
||||
{
|
||||
goPackagePath = "github.com/badgerodon/peg";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/badgerodon/peg";
|
||||
rev = "9e5f7f4d07ca576562618c23e8abadda278b684f";
|
||||
sha256 = "12vd7hzdgknn8byz77lmvcrz9m5lvmffdnz2wwk83304przkra11";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/boltdb/bolt";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/boltdb/bolt";
|
||||
rev = "a705895fdad108f053eae7ee011ed94a0541ee13";
|
||||
sha256 = "0ql67l2hmjhplkl80j9a49qlra4qx671il5rgn58afkvk20cgq2r";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/cznic/mathutil";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/cznic/mathutil";
|
||||
rev = "f9551431b78e71ee24939a1e9d8f49f43898b5cd";
|
||||
sha256 = "1158mlwzryyna1qslr9v88i0k8x6m8vs4rljnnwh04rmd63ksj75";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/davecgh/go-spew";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/davecgh/go-spew";
|
||||
rev = "2df174808ee097f90d259e432cc04442cf60be21";
|
||||
sha256 = "0jghd5dmwqpcjbxij9yjj8sjzll9s65i2qnxd8rdzwh77xdsfm9g";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/dlclark/regexp2";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/dlclark/regexp2";
|
||||
rev = "4009c9dc49dd8906bfd4d479c255470d6a477ce5";
|
||||
sha256 = "1r6f0q1jvn1lkwqlrmmg5d90p6zss8s64jyp91hp6i97vpahq8xz";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/dop251/goja";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/dop251/goja";
|
||||
rev = "64f863c4eb0329df18ecd1dab1e03609556bfaca";
|
||||
sha256 = "0smipfs7fja286nvlr7q4b8f815br0nia0k4xp8y5fvprrzrm64h";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/gogo/protobuf";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/gogo/protobuf";
|
||||
rev = "50d1bd39ce4e7a96b75e3e040be9caf79dbb4c61";
|
||||
sha256 = "09cad9j98pdqh1sp191j92ng6lvw9la3k3v6m5mv38nwirpwzra1";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/golang/glog";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/golang/glog";
|
||||
rev = "23def4e6c14b4da8ac2ed8007337bc5eb5007998";
|
||||
sha256 = "0jb2834rw5sykfr937fxi8hxi2zy80sj2bdn9b3jb4b26ksqng30";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/golang/protobuf";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/golang/protobuf";
|
||||
rev = "888eb0692c857ec880338addf316bd662d5e630e";
|
||||
sha256 = "1vhx2dwr71hma9z3dfb3l1yrkjlry0glwxknxzyp9ds51i6pjiq0";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/hashicorp/go-cleanhttp";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/hashicorp/go-cleanhttp";
|
||||
rev = "ad28ea4487f05916463e2423a55166280e8254b5";
|
||||
sha256 = "0xw0qas3ixg8p2xh09hhc81km0mfn9lbnfgrdb309hzcwhmiyqjm";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/julienschmidt/httprouter";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/julienschmidt/httprouter";
|
||||
rev = "b59a38004596b696aca7aa2adccfa68760864d86";
|
||||
sha256 = "0j1w2fkcghyw3lcsc13lwf2zqar9xyni2g7fqp4aq8g08ii7paac";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/lib/pq";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/lib/pq";
|
||||
rev = "0dad96c0b94f8dee039aa40467f767467392a0af";
|
||||
sha256 = "06c38iy37251mh8jy9s8n97b01pjnqpq8ii77nnmqh1dsph37jz4";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/linkeddata/gojsonld";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/linkeddata/gojsonld";
|
||||
rev = "a223ef39bb925d36d4c410d3e35b0e34e370cc31";
|
||||
sha256 = "1i3vl7gbkq2xl2wyv0kszj0x32vp8jw1cf0ngpdqdhdvnbfi1w7i";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/pborman/uuid";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/pborman/uuid";
|
||||
rev = "ca53cad383cad2479bbba7f7a1a05797ec1386e4";
|
||||
sha256 = "0rcx669bbjkkwdlw81spnra4ffgzd4rbpywnrj3w41m9vq6mk1gn";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/peterh/liner";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/peterh/liner";
|
||||
rev = "1bb0d1c1a25ed393d8feb09bab039b2b1b1fbced";
|
||||
sha256 = "05ihxpmp6x3hw71xzvjdgxnyvyx2s4lf23xqnfjj16s4j4qidc48";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/pmezard/go-difflib";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/pmezard/go-difflib";
|
||||
rev = "d8ed2627bdf02c080bf22230dbb337003b7aba2d";
|
||||
sha256 = "0w1jp4k4zbnrxh3jvh8fgbjgqpf2hg31pbj8fb32kh26px9ldpbs";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/robertkrimen/otto";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/robertkrimen/otto";
|
||||
rev = "d1b4d8ef0e0e4b088c8328c95ca63ab9ebd8fc9d";
|
||||
sha256 = "0i31p3paz3n7qi2v1g77lm3cx2hssgwgcfpar4qc2vj7m4766884";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/russross/blackfriday";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/russross/blackfriday";
|
||||
rev = "17bb7999de6cfb791d4f8986cc00b3309b370cdb";
|
||||
sha256 = "1md0sjw69mj359cb4c8ghzllcbn2lnkvby1203wl0pf5wbyfvm5s";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/shurcooL/sanitized_anchor_name";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/shurcooL/sanitized_anchor_name";
|
||||
rev = "8e87604bec3c645a4eeaee97dfec9f25811ff20d";
|
||||
sha256 = "05b6yj23c3xx446kanhaj1l83av8676z7si8n1f4sqy2pp7s966v";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/sirupsen/logrus";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/sirupsen/logrus";
|
||||
rev = "08a8a7c27e3d058a8989316a850daad1c10bf4ab";
|
||||
sha256 = "1fbh1b42alvpbw87v0v2hanliaqp6fm4h9n7byk921mcv6dai8fl";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/stretchr/testify";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/stretchr/testify";
|
||||
rev = "f390dcf405f7b83c997eac1b06768bb9f44dec18";
|
||||
sha256 = "1l3z0ggdcjspfmm6k9glmh52a9x50806k6yldxql73p4bpynsd9g";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/syndtr/goleveldb";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/syndtr/goleveldb";
|
||||
rev = "4875955338b0a434238a31165cb87255ab6e9e4a";
|
||||
sha256 = "0786j6kizrlskqz196ng4d13363d44whl849jcv1q07yab2nq40i";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/syndtr/gosnappy";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/syndtr/gosnappy";
|
||||
rev = "156a073208e131d7d2e212cb749feae7c339e846";
|
||||
sha256 = "08lf8smnp4imj5fkph9sbqzb4a5n191q9m6b2c5kamp19i9h2y6z";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "golang.org/x/net";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/net";
|
||||
rev = "6a513affb38dc9788b449d59ffed099b8de18fa0";
|
||||
sha256 = "1g07c05s3ccq0086f0f200k9cfjjzxd4r9nrdilkmy44lbhhrval";
|
||||
};
|
||||
}
|
||||
{
|
||||
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 = "5a42fa2464759cbb7ee0af9de00b54d69f09a29c";
|
||||
sha256 = "0far6mb2ikwzr7icn0yqi9ygl8kv2wsaasyprbqb9qapr0dqjw0s";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "google.golang.org/appengine";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/golang/appengine";
|
||||
rev = "4f7eeb5305a4ba1966344836ba4af9996b7b4e05";
|
||||
sha256 = "09pgvlk5ay3f0avi1bawpy8khi3rmkfl36l2yr3ryp8z12i9k2qj";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "gopkg.in/mgo.v2";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://gopkg.in/mgo.v2";
|
||||
rev = "c6a7dce14133ccac2dcac3793f1d6e2ef048503a";
|
||||
sha256 = "0rg232q1bkq3y3kd5816hgk1jpf7i38aha5q5ia7j6p9xashz7vj";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/go-sql-driver/mysql";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/go-sql-driver/mysql";
|
||||
rev = "2e00b5cd70399450106cec6431c2e2ce3cae5034";
|
||||
sha256 = "085g48jq9hzmlcxg122n0c4pi41sc1nn2qpx1vrl2jfa8crsppa5";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/dennwc/graphql";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/dennwc/graphql";
|
||||
rev = "fd5c4aa13f2119414084f229600de0d73f174436";
|
||||
sha256 = "11f9jwfc2j646732gkcjb332ih9fxh04j31zmhvqswx75gvk9wzs";
|
||||
};
|
||||
}
|
||||
]
|
|
@ -10587,6 +10587,8 @@ with pkgs;
|
|||
bosun = callPackage ../servers/monitoring/bosun { };
|
||||
scollector = bosun;
|
||||
|
||||
cayley = callPackage ../servers/cayley { };
|
||||
|
||||
charybdis = callPackage ../servers/irc/charybdis {};
|
||||
|
||||
couchdb = callPackage ../servers/http/couchdb {
|
||||
|
|
Loading…
Reference in a new issue