diff options
author | 7c6f434c <7c6f434c@mail.ru> | 2024-05-10 13:32:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-10 13:32:36 +0000 |
commit | 60053629036916d3da9e63725f06765ff86a37bd (patch) | |
tree | cd075479c80d6b4083b39b49723132edd384b507 /pkgs/servers | |
parent | 936124b122886bd4a950e0762fec97b2be8b15fd (diff) | |
parent | 1135620d73fd04f7ef24a0a45c1efc57814b17ec (diff) |
Merge pull request #310577 from zebreus/fix-fuseki
apache-jena-fuseki: fix running with nix run
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/nosql/apache-jena/fuseki-binary.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/servers/nosql/apache-jena/fuseki-binary.nix b/pkgs/servers/nosql/apache-jena/fuseki-binary.nix index d748cdb7c4ebe..9817de91766f1 100644 --- a/pkgs/servers/nosql/apache-jena/fuseki-binary.nix +++ b/pkgs/servers/nosql/apache-jena/fuseki-binary.nix @@ -24,9 +24,12 @@ stdenv.mkDerivation rec { chmod +x $out/fuseki ln -s "$out"/{fuseki-backup,fuseki-server,fuseki} "$out/bin" for i in "$out"/bin/*; do + # It is necessary to set the default $FUSEKI_BASE directory to a writable location + # By default it points to $FUSEKI_HOME/run which is in the nix store wrapProgram "$i" \ --prefix "PATH" : "${java}/bin/:${coreutils}/bin:${which}/bin" \ --set-default "FUSEKI_HOME" "$out" \ + --run "if [ -z \"\$FUSEKI_BASE\" ]; then export FUSEKI_BASE=\"\$HOME/.local/fuseki\" ; mkdir -p \"\$HOME/.local/fuseki\" ; fi" \ ; done ''; @@ -40,7 +43,9 @@ stdenv.mkDerivation rec { license = licenses.asl20; maintainers = with maintainers; [ raskin ]; platforms = platforms.all; + sourceProvenance = with sourceTypes; [ binaryBytecode binaryNativeCode ]; homepage = "https://jena.apache.org"; downloadPage = "https://archive.apache.org/dist/jena/binaries/"; + mainProgram = "fuseki"; }; } |