nixos: gen 52 @ lilac — 2026-09-18 20:58 26.05.20260814.02e0898 (Yarara) -----

This commit is contained in:
2026-09-18 21:04:39 -06:00
parent a17047a67a
commit 8878543aeb
4 changed files with 168 additions and 3 deletions
+14 -3
View File
@@ -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" ''
+11
View File
@@ -234,6 +234,17 @@ in
dapui.setup()
require("nvim-dap-virtual-text").setup()
-- `jtest --debug` suspends the test JVM waiting on :5005; this lets
-- <leader>dc attach to it directly from the config picker.
dap.configurations.java = dap.configurations.java or {}
table.insert(dap.configurations.java, {
type = "java",
request = "attach",
name = "Attach to jtest (:5005)",
hostName = "127.0.0.1",
port = 5005,
})
dap.listeners.after.event_initialized["dapui"] = function() dapui.open() end
dap.listeners.before.event_terminated["dapui"] = function() dapui.close() end
dap.listeners.before.event_exited["dapui"] = function() dapui.close() end