bashdb: improve & build for darwin

- Pull in the normal bash in buildInputs (instead of bashMinimal which
  was implicit). This avoids various runtime errors.
- Enable auto update with nix-update.
- Make available for unix (including darwin).
This commit is contained in:
Bryan Lai
2026-02-27 09:54:12 +08:00
parent bcc4a9d953
commit 875d5fd5a2
+6 -1
View File
@@ -9,6 +9,8 @@
perl,
python3,
bash,
nix-update-script,
}:
stdenv.mkDerivation {
@@ -35,6 +37,7 @@ stdenv.mkDerivation {
buildInputs = [
# used at runtime by term-highlight.py
(python3.withPackages (ps: [ ps.pygments ]))
bash
];
configureFlags = [
@@ -43,6 +46,8 @@ stdenv.mkDerivation {
"--with-dbg-main=${placeholder "out"}/share/bashdb/bashdb-main.inc"
];
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://bashdb.sourceforge.net/";
description = "A gdb-like debugger for bash";
@@ -55,6 +60,6 @@ stdenv.mkDerivation {
maintainers = with lib.maintainers; [
jk
];
platforms = lib.platforms.linux;
platforms = lib.platforms.unix;
};
}