diff options
author | Astro <astro@spaceboyz.net> | 2023-02-01 17:51:44 +0100 |
---|---|---|
committer | Astro <astro@spaceboyz.net> | 2023-02-23 00:41:02 +0100 |
commit | 1fe9b60df985ad2f8a71d36db0af5a2a6088df17 (patch) | |
tree | 57baa4cc9f38daf1d5322ead8c9c38a927045970 /pkgs/servers | |
parent | 7cec24480ea3f10690f752775fa52d693eb5ad6f (diff) | |
download | nixpkgs-1fe9b60df985ad2f8a71d36db0af5a2a6088df17.tar nixpkgs-1fe9b60df985ad2f8a71d36db0af5a2a6088df17.tar.gz nixpkgs-1fe9b60df985ad2f8a71d36db0af5a2a6088df17.tar.bz2 nixpkgs-1fe9b60df985ad2f8a71d36db0af5a2a6088df17.tar.lz nixpkgs-1fe9b60df985ad2f8a71d36db0af5a2a6088df17.tar.xz nixpkgs-1fe9b60df985ad2f8a71d36db0af5a2a6088df17.tar.zst nixpkgs-1fe9b60df985ad2f8a71d36db0af5a2a6088df17.zip |
oxigraph: init at 0.3.11
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/oxigraph/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/servers/oxigraph/default.nix b/pkgs/servers/oxigraph/default.nix new file mode 100644 index 00000000000..12dba25d1e6 --- /dev/null +++ b/pkgs/servers/oxigraph/default.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +, IOKit +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "oxigraph"; + version = "0.3.11"; + + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-7KbDZKKJPk3QTp4siIbdB6xKbslw73Lhc7NoeOuA0Og="; + fetchSubmodules = true; + }; + + cargoSha256 = "sha256-Yqn6hwejg6LzcqW0MiUN3tqrOql6cpu/5plaOz+2/ns="; + + 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 ]; + }; +} |