depot/third_party/nixpkgs/pkgs/servers/oxigraph/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

40 lines
955 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, IOKit
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "oxigraph";
version = "0.3.20";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-gV7Yo14oGFzuO1b/JGXeuqn4k+9aNTwngEJHoD9+NMI=";
fetchSubmodules = true;
};
cargoHash = "sha256-bXf7PZm2l1hwnFVbfEJWLyRaVY3cZFaDSe8b77JtyaU=";
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 ];
};
}