mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "cayley";
|
|
version = "0.7.7";
|
|
rev = "dcf764fef381f19ee49fad186b4e00024709f148";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cayleygraph";
|
|
repo = "cayley";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-jIX0v6ujiQvEAb/mKkrpNgsY0YLkJYHy2sUfQnooE48=";
|
|
};
|
|
|
|
vendorHash = "sha256-SSjHGJoW3I7r8emh3IwmiZQIVzdilAsA2ULdAqld2fA=";
|
|
|
|
subPackages = [ "cmd/cayley" ];
|
|
|
|
ldflags = let basename = "github.com/cayleygraph/cayley/version"; in [
|
|
"-s"
|
|
"-w"
|
|
"-X ${basename}.Version=${src.rev}"
|
|
"-X ${basename}.GitHash=${rev}"
|
|
];
|
|
|
|
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 ];
|
|
mainProgram = "cayley";
|
|
};
|
|
}
|