2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, IOKit
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "oxigraph";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.3.22";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-zwUiUDWdrmLF+Qj9Jy6JGXHaBskRnm+pMKW2GKGGeN8=";
|
2023-03-04 12:14:45 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
cargoHash = "sha256-O9/YvvFOaZ1F7HYO/AplWLz1vw0hysJEvGketk8zb9w=";
|
2023-03-04 12:14:45 +00: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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "oxigraph_server";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
}
|