Commit 875d5fd5 authored by Bryan Lai's avatar Bryan Lai
Browse files

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).
parent bcc4a9d9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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;
  };
}