From 875d5fd5a2bcb3d2c28a107f5d27f59680ea5c02 Mon Sep 17 00:00:00 2001 From: Bryan Lai Date: Fri, 27 Feb 2026 09:54:12 +0800 Subject: [PATCH] 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). --- pkgs/by-name/ba/bashdb/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ba/bashdb/package.nix b/pkgs/by-name/ba/bashdb/package.nix index 978a0b3cf094..9ec2e3c06cdb 100644 --- a/pkgs/by-name/ba/bashdb/package.nix +++ b/pkgs/by-name/ba/bashdb/package.nix @@ -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; }; }