Unverified Commit af453a57 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #214014 from astro/oxigraph

oxigraph: init at 0.3.11
parents a31c3d5e 1fe9b60d
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -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 {};