13 stdenv.mkDerivation rec {
14 pname = "apache-jena-fuseki";
17 url = "mirror://apache/jena/binaries/apache-jena-fuseki-${version}.tar.gz";
18 hash = "sha256-GcwXcLVM2txPC+kkHjEIpqK9dTkQEN9Jkka0EaJRO7Q=";
26 ln -s "$out"/{fuseki-backup,fuseki-server,fuseki} "$out/bin"
27 for i in "$out"/bin/fuseki*; do
28 # It is necessary to set the default $FUSEKI_BASE directory to a writable location
29 # By default it points to $FUSEKI_HOME/run which is in the nix store
31 --prefix "PATH" : "${java}/bin/:${coreutils}/bin:${which}/bin" \
32 --set-default "FUSEKI_HOME" "$out" \
33 --run "if [ -z \"\$FUSEKI_BASE\" ]; then export FUSEKI_BASE=\"\$HOME/.local/fuseki\" ; mkdir -p \"\$HOME/.local/fuseki\" ; fi" \
39 basic-test = pkgs.callPackage ./fuseki-test.nix { };
43 description = "SPARQL server";
44 license = licenses.asl20;
45 maintainers = with maintainers; [ raskin ];
46 platforms = platforms.all;
47 sourceProvenance = with sourceTypes; [
51 homepage = "https://jena.apache.org";
52 downloadPage = "https://archive.apache.org/dist/jena/binaries/";
53 mainProgram = "fuseki";