nixpkgs/pkgs/servers/oxigraph/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
955 B
Nix
Raw Normal View History

2023-02-01 16:51:44 +00:00
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, IOKit
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "oxigraph";
2023-08-24 17:42:39 +00:00
version = "0.3.19";
2023-02-01 16:51:44 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2023-08-24 17:42:39 +00:00
sha256 = "sha256-lVPRg9zU3VOTrxr2pTHzfvaGjoP/h88W4JmQhOKshRc=";
2023-02-01 16:51:44 +00:00
fetchSubmodules = true;
};
2023-08-24 17:42:39 +00:00
cargoHash = "sha256-+wh6qHXW9KXXOkMIkRr+tI3ViBrHpE2G+96mhXFJDtI=";
2023-02-01 16:51:44 +00:00
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 ];
};
}