nixpkgs/pkgs/servers/oxigraph/default.nix
2023-12-01 21:15:38 +00:00

42 lines
992 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, IOKit
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "oxigraph";
version = "0.3.21";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-SjAsSWpjNK4XxbYEw6A8n+hchVyzJd0bx1rAqchmw4w=";
fetchSubmodules = true;
};
cargoHash = "sha256-fDU7RF9TArSQFb6DP/Ltu9Fls2rzhXeBI/jVh5QuKUI=";
nativeBuildInputs = [
rustPlatform.bindgenHook
];
buildInputs = lib.optionals stdenv.isDarwin [ IOKit Security ];
cargoBuildFlags = [ "--package" "oxigraph_server" ];
# requires packaging of the associated python modules
doCheck = false;
meta = with lib; {
homepage = "https://github.com/oxigraph/oxigraph";
description = "SPARQL graph database";
platforms = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
maintainers = with maintainers; [ astro ];
license = with licenses; [ asl20 mit ];
mainProgram = "oxigraph_server";
};
}