nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, rustPlatform
4, fetchFromGitHub
5, IOKit
6, Security
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "oxigraph";
11 version = "0.3.16";
12
13 src = fetchFromGitHub {
14 owner = pname;
15 repo = pname;
16 rev = "v${version}";
17 sha256 = "sha256-sE+HeXg6JovLXhFFJhgsASfObvzgeYX+MjwI5b7G0gI=";
18 fetchSubmodules = true;
19 };
20
21 cargoHash = "sha256-7ykVKPjCFwpLqdPiWlxO/rBofgbfv+U3aM50RhzjGVY=";
22
23 nativeBuildInputs = [
24 rustPlatform.bindgenHook
25 ];
26 buildInputs = lib.optionals stdenv.isDarwin [ IOKit Security ];
27
28 cargoBuildFlags = [ "--package" "oxigraph_server" ];
29
30 # requires packaging of the associated python modules
31 doCheck = false;
32
33 meta = with lib; {
34 homepage = "https://github.com/oxigraph/oxigraph";
35 description = "SPARQL graph database";
36 platforms = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
37 maintainers = with maintainers; [ astro ];
38 license = with licenses; [ asl20 mit ];
39 };
40}