2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, java
|
|
|
|
, coreutils
|
|
|
|
, which
|
|
|
|
, makeWrapper
|
|
|
|
# For the test
|
|
|
|
, pkgs
|
|
|
|
}:
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "apache-jena-fuseki";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "4.9.0";
|
2022-01-19 23:45:15 +00:00
|
|
|
src = fetchurl {
|
2023-05-24 13:37:59 +00:00
|
|
|
url = "mirror://apache/jena/binaries/apache-jena-fuseki-${version}.tar.gz";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-t25Q0lb+ecR12cDD1p6eZnzLxW0kZpPOFGvo5YK7AlI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-08-21 13:32:41 +00:00
|
|
|
nativeBuildInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
installPhase = ''
|
|
|
|
cp -r . "$out"
|
2021-09-22 15:38:15 +00:00
|
|
|
chmod +x $out/fuseki
|
|
|
|
ln -s "$out"/{fuseki-backup,fuseki-server,fuseki} "$out/bin"
|
2020-04-24 23:36:52 +00:00
|
|
|
for i in "$out"/bin/*; do
|
|
|
|
wrapProgram "$i" \
|
2023-08-04 22:07:22 +00:00
|
|
|
--prefix "PATH" : "${java}/bin/:${coreutils}/bin:${which}/bin" \
|
2020-04-24 23:36:52 +00:00
|
|
|
--set-default "FUSEKI_HOME" "$out" \
|
|
|
|
;
|
|
|
|
done
|
|
|
|
'';
|
2023-08-04 22:07:22 +00:00
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
basic-test = pkgs.callPackage ./fuseki-test.nix { };
|
|
|
|
};
|
|
|
|
};
|
2022-01-19 23:45:15 +00:00
|
|
|
meta = with lib; {
|
2021-01-17 00:15:33 +00:00
|
|
|
description = "SPARQL server";
|
2022-01-19 23:45:15 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
2023-10-09 19:29:22 +00:00
|
|
|
platforms = platforms.all;
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://jena.apache.org";
|
|
|
|
downloadPage = "https://archive.apache.org/dist/jena/binaries/";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|