Merge pull request #214014 from astro/oxigraph

oxigraph: init at 0.3.11
This commit is contained in:
Nick Cao 2023-02-23 08:52:02 +08:00 committed by GitHub
commit af453a57a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -9301,6 +9301,10 @@ with pkgs;
ox = callPackage ../applications/editors/ox { };
oxigraph = callPackage ../servers/oxigraph {
inherit (darwin.apple_sdk.frameworks) IOKit Security;
};
file-rename = callPackage ../tools/filesystems/file-rename { };
kcollectd = libsForQt5.callPackage ../tools/misc/kcollectd {};