2022-06-12 12:18:20 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2017-04-13 16:10:39 +01:00
|
|
|
|
2022-06-12 12:18:20 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cayley";
|
2022-06-12 12:18:20 +01:00
|
|
|
version = "0.7.7";
|
|
|
|
rev = "dcf764fef381f19ee49fad186b4e00024709f148";
|
2017-04-13 16:10:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cayleygraph";
|
|
|
|
repo = "cayley";
|
|
|
|
rev = "v${version}";
|
2022-06-12 12:18:20 +01:00
|
|
|
sha256 = "sha256-jIX0v6ujiQvEAb/mKkrpNgsY0YLkJYHy2sUfQnooE48=";
|
2017-04-13 16:10:39 +01:00
|
|
|
};
|
|
|
|
|
2022-06-12 12:18:20 +01:00
|
|
|
vendorSha256 = "sha256-SSjHGJoW3I7r8emh3IwmiZQIVzdilAsA2ULdAqld2fA=";
|
|
|
|
|
|
|
|
subPackages = [ "cmd/cayley" ];
|
2017-04-13 16:10:39 +01:00
|
|
|
|
2022-06-12 12:18:20 +01:00
|
|
|
ldflags = let basename = "github.com/cayleygraph/cayley/version"; in [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X ${basename}.Version=${src.rev}"
|
|
|
|
"-X ${basename}.GitHash=${rev}"
|
2021-08-26 04:31:57 +01:00
|
|
|
];
|
2020-07-31 05:07:43 +01:00
|
|
|
|
2022-06-12 12:18:20 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Graph database designed for ease of use and storing complex data";
|
|
|
|
longDescription = ''
|
|
|
|
Cayley is an open-source database for Linked Data. It is inspired by the
|
|
|
|
graph database behind Google's Knowledge Graph (formerly Freebase).
|
|
|
|
'';
|
|
|
|
homepage = "https://cayley.io/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ sigma ];
|
2017-04-13 16:10:39 +01:00
|
|
|
};
|
|
|
|
}
|