Unverified Commit bcfe04dc authored by Anderson Torres's avatar Anderson Torres Committed by GitHub
Browse files

Merge pull request #141930 from AndersonTorres/new-misc

Misc updates

dapl: 0.2.0+unstable=2021-06-30 -> 0.2.0+date=2021-10-16
dbqn: 0.pre+unstable=2021-10-05 -> 0.pre+date=2021-10-08
parents 6836bff5 84e726be
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -8,31 +8,34 @@

stdenv.mkDerivation rec {
  pname = "dbqn" + lib.optionalString buildNativeImage "-native";
  version = "0.pre+unstable=2021-10-05";
  version = "0.pre+date=2021-10-08";

  src = fetchFromGitHub {
    owner = "dzaima";
    repo = "BQN";
    rev = "c31ceef52bbf380e747723f5ffd09c5f006b21c5";
    sha256 = "1nzqgwpjawcky85mfrz5izs9lfb3aqlm96dc8syrxhgg20xrziwx";
    rev = "0001109a1c5a420421b368c79d34b1e93bfe606e";
    hash = "sha256-riHHclTLkrVbtzmcz9ungAIc7kaoFHS77+SNatsfNhc=";
  };

  nativeBuildInputs = [
    makeWrapper
    jdk
    makeWrapper
  ];

  dontConfigure = true;

  postPatch = ''
    patchShebangs --build ./build8
  '';

  buildPhase = ''
    runHook preBuild

    patchShebangs --build ./build8
    ./build8
  '' + lib.optionalString buildNativeImage ''
    native-image --report-unsupported-elements-at-runtime \
      -H:CLibraryPath=${lib.getLib jdk}/lib \
      -J-Dfile.encoding=UTF-8 -jar BQN.jar dbqn
      -H:CLibraryPath=${lib.getLib jdk}/lib -J-Dfile.encoding=UTF-8 \
      -jar BQN.jar dbqn
  '' + ''
    runHook postBuild
  '';
+10 −8
Original line number Diff line number Diff line
@@ -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
  '';