depot/third_party/nixpkgs/pkgs/servers/oxigraph/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

40 lines
955 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, IOKit
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "oxigraph";
version = "0.3.16";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-sE+HeXg6JovLXhFFJhgsASfObvzgeYX+MjwI5b7G0gI=";
fetchSubmodules = true;
};
cargoHash = "sha256-7ykVKPjCFwpLqdPiWlxO/rBofgbfv+U3aM50RhzjGVY=";
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 ];
};
}