writeScript* -> writeShellScript*

This commit is contained in:
Charlotte Van Petegem 2020-10-16 10:14:34 +02:00
parent 10d39faff4
commit 23b7c3f5a7
No known key found for this signature in database
GPG key ID: 019E764B7184435A
9 changed files with 12 additions and 38 deletions

View file

@ -5,9 +5,7 @@ in
pkgs.mkShell {
buildInputs = with pkgs; [
(
pkgs.writeScriptBin "java" ''
#!${pkgs.zsh}/bin/zsh
pkgs.writeShellScriptBin "java" ''
old_path="$(patchelf --print-rpath ${jdk11}/bin/java)"
LD_LIBRARY_PATH="$old_path:${extraRpath}" ${jdk11}/bin/java $@
''