7 buildNativeImage ? false,
10 stdenv.mkDerivation rec {
11 pname = "dbqn" + lib.optionalString buildNativeImage "-native";
14 src = fetchFromGitHub {
18 hash = "sha256-AUfT7l7zr/pyG63wX8FMej8RUg7tXC1aroCrunjyw/8=";
29 patchShebangs --build ./build8
38 + lib.optionalString buildNativeImage ''
39 native-image --report-unsupported-elements-at-runtime \
40 -H:CLibraryPath=${lib.getLib jdk}/lib -J-Dfile.encoding=UTF-8 \
55 if buildNativeImage then
61 mkdir -p $out/share/dbqn
62 mv BQN.jar $out/share/dbqn/
64 makeWrapper "${lib.getBin jdk}/bin/java" "$out/bin/dbqn" \
65 --add-flags "-jar $out/share/dbqn/BQN.jar"
69 ln -s $out/bin/dbqn $out/bin/bqn
75 homepage = "https://github.com/dzaima/BQN";
77 "BQN implementation in Java" + lib.optionalString buildNativeImage ", compiled as a native image";
78 license = licenses.mit;
79 maintainers = with maintainers; [
83 inherit (jdk.meta) platforms;
84 broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/staging-next/dbqn-native.x86_64-darwin
87 # TODO: Processing app
88 # TODO: minimalistic JDK