2023-02-01 17:51:44 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, IOKit
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "oxigraph";
|
2023-10-24 21:04:21 +02:00
|
|
|
version = "0.3.20";
|
2023-02-01 17:51:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-24 21:04:21 +02:00
|
|
|
sha256 = "sha256-gV7Yo14oGFzuO1b/JGXeuqn4k+9aNTwngEJHoD9+NMI=";
|
2023-02-01 17:51:44 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2023-10-24 21:04:21 +02:00
|
|
|
cargoHash = "sha256-bXf7PZm2l1hwnFVbfEJWLyRaVY3cZFaDSe8b77JtyaU=";
|
2023-02-01 17:51:44 +01:00
|
|
|
|
|
|
|
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 ];
|
2023-11-23 22:09:35 +01:00
|
|
|
mainProgram = "oxigraph_server";
|
2023-02-01 17:51:44 +01:00
|
|
|
};
|
|
|
|
}
|