nixos: gen 52 @ lilac — 2026-09-18 20:58 26.05.20260814.02e0898 (Yarara) -----
This commit is contained in:
+14
-3
@@ -37,7 +37,7 @@ in
|
||||
GTK_IM_MODULE = "wayland"; # Forces GTK apps to use Wayland text-input protocols
|
||||
QT_IM_MODULE = "wayland"; # Forces Qt apps to use Wayland text-input protocols
|
||||
TEXT_INPUT_PRESENT = "1"; # Explicitly signals virtual keyboard capability to the shell
|
||||
JAVA_HOME = "{pkgs.jdk21}";
|
||||
JAVA_HOME = "${pkgs.jdk21}";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
@@ -127,17 +127,28 @@ in
|
||||
echo "jtest: no junit-platform-console-standalone jar in ~/dev/jars" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# --debug suspends the test JVM on start and waits for nvim-dap to attach
|
||||
# on :5005 (see the "Attach to jtest" config in nvim.nix), so breakpoints
|
||||
# set before running jtest --debug are hit from the very first test.
|
||||
DEBUG_ARGS=()
|
||||
if [ "''${1:-}" = "--debug" ]; then
|
||||
DEBUG_ARGS=(-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005)
|
||||
shift
|
||||
echo "jtest: waiting for debugger to attach on 127.0.0.1:5005..." >&2
|
||||
fi
|
||||
|
||||
ROOT="$(jroot)"
|
||||
jbuild
|
||||
cd "$ROOT"
|
||||
if [ $# -eq 0 ]; then
|
||||
exec java -jar "$JUNIT" execute --class-path "bin:lib/*" --scan-class-path --details=tree
|
||||
exec java "''${DEBUG_ARGS[@]}" -jar "$JUNIT" execute --class-path "bin:lib/*" --scan-class-path --details=tree
|
||||
fi
|
||||
ARGS=""
|
||||
for pkg in "$@"; do
|
||||
ARGS="$ARGS --select-package $pkg"
|
||||
done
|
||||
exec java -jar "$JUNIT" execute --class-path "bin:lib/*" $ARGS --details=tree
|
||||
exec java "''${DEBUG_ARGS[@]}" -jar "$JUNIT" execute --class-path "bin:lib/*" $ARGS --details=tree
|
||||
'')
|
||||
|
||||
(pkgs.writeShellScriptBin "fkill" ''
|
||||
|
||||
Reference in New Issue
Block a user