summary refs log tree commit diff
path: root/pkgs/development/interpreters/dzaima-apl
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-10-16 21:07:28 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-10-16 21:24:59 -0300
commit504fff7a3b6e2b33ab1664e8671fbe89d6fb9ceb (patch)
treed42139f16fc46f2dcd15a43567ac6c3cac2d6fb8 /pkgs/development/interpreters/dzaima-apl
parent50ff5c608a7e9c1ce4cf25177f0e32ee3a81722c (diff)
downloadnixpkgs-504fff7a3b6e2b33ab1664e8671fbe89d6fb9ceb.tar
nixpkgs-504fff7a3b6e2b33ab1664e8671fbe89d6fb9ceb.tar.gz
nixpkgs-504fff7a3b6e2b33ab1664e8671fbe89d6fb9ceb.tar.bz2
nixpkgs-504fff7a3b6e2b33ab1664e8671fbe89d6fb9ceb.tar.lz
nixpkgs-504fff7a3b6e2b33ab1664e8671fbe89d6fb9ceb.tar.xz
nixpkgs-504fff7a3b6e2b33ab1664e8671fbe89d6fb9ceb.tar.zst
nixpkgs-504fff7a3b6e2b33ab1664e8671fbe89d6fb9ceb.zip
dapl: 0.2.0+unstable=2021-06-30 -> 0.2.0+date=2021-10-16
Diffstat (limited to 'pkgs/development/interpreters/dzaima-apl')
-rw-r--r--pkgs/development/interpreters/dzaima-apl/default.nix18
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/development/interpreters/dzaima-apl/default.nix b/pkgs/development/interpreters/dzaima-apl/default.nix
index 80458e1398a..d061a6cb9cd 100644
--- a/pkgs/development/interpreters/dzaima-apl/default.nix
+++ b/pkgs/development/interpreters/dzaima-apl/default.nix
@@ -8,32 +8,34 @@
 
 stdenv.mkDerivation rec {
   pname = "dapl" + lib.optionalString buildNativeImage "-native";
-  version = "0.2.0+unstable=2021-06-30";
+  version = "0.2.0+date=2021-10-16";
 
   src = fetchFromGitHub {
     owner = "dzaima";
     repo = "APL";
-    rev = "28b3667beb23c6472266bb2b6eb701708fa421c6";
-    hash = "sha256-2kM9XDMclxJNOZngwLvoDQG23UZQQ6ePK/j215UumCg=";
+    rev = "5eb0a4205e27afa6122096a25008474eec562dc0";
+    hash = "sha256-UdumMytqT909JRpNqzhYPuKPw644m/vRUsEbIVF2a7U=";
   };
 
   nativeBuildInputs = [
-    makeWrapper
     jdk
+    makeWrapper
   ];
 
   dontConfigure = true;
 
+  postPatch = ''
+    patchShebangs --build ./build
+  '';
+
   buildPhase = ''
     runHook preBuild
 
-    patchShebangs --build ./build
-    substituteInPlace ./build \
-      --replace "javac" "javac -encoding utf8"
     ./build
   '' + lib.optionalString buildNativeImage ''
     native-image --report-unsupported-elements-at-runtime \
-      -H:CLibraryPath=${lib.getLib jdk}/lib -jar APL.jar dapl
+      -H:CLibraryPath=${lib.getLib jdk}/lib -J-Dfile.encoding=UTF-8 \
+      -jar APL.jar dapl
   '' + ''
     runHook postBuild
   '';