summary refs log tree commit diff
path: root/pkgs/servers/cayley/default.nix
blob: c62a28e41bdf98837a22557b4a442660b1c8bebd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "cayley";
  version = "0.7.5";

  goPackagePath = "github.com/cayleygraph/cayley";

  src = fetchFromGitHub {
    owner = "cayleygraph";
    repo = "cayley";
    rev = "v${version}";
    sha256 = "1zfxa9z6spi6xw028mvbc7c3g517gn82g77ywr6picl47fr2blnd";
  };

  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;
  };
}