about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/bashdb
diff options
context:
space:
mode:
authorRyan Burns <rtburns@protonmail.com>2021-09-26 16:45:46 -0700
committerRaphael Megzari <raphael@megzari.com>2021-09-27 11:52:26 +0900
commite6654828b8be4e89cd1ef01424aca412b009d87a (patch)
treeddc1cf7c495d5a07a79a1227665d675637a23dc2 /pkgs/development/tools/misc/bashdb
parent5eaa177945dac6030309aee34b5eec9991f51584 (diff)
bashdb: 4.4-1.0.0 -> 5.0-1.1.2, fix build with bash 5.1
Diffstat (limited to 'pkgs/development/tools/misc/bashdb')
-rw-r--r--pkgs/development/tools/misc/bashdb/default.nix22
1 files changed, 19 insertions, 3 deletions
diff --git a/pkgs/development/tools/misc/bashdb/default.nix b/pkgs/development/tools/misc/bashdb/default.nix
index 72ec8c96be34e..918dd90aa83fe 100644
--- a/pkgs/development/tools/misc/bashdb/default.nix
+++ b/pkgs/development/tools/misc/bashdb/default.nix
@@ -1,14 +1,30 @@
-{ lib, stdenv, fetchurl, makeWrapper, python3Packages }:
+{ lib
+, stdenv
+, fetchurl
+, fetchpatch
+, makeWrapper
+, python3Packages
+}:
 
 stdenv.mkDerivation rec {
   pname = "bashdb";
-  version = "4.4-1.0.0";
+  version = "5.0-1.1.2";
 
   src = fetchurl {
     url =  "mirror://sourceforge/bashdb/${pname}-${version}.tar.bz2";
-    sha256 = "0p7i7bpzs6q1i7swnkr89kxqgzr146xw8d2acmqwqbslzm9dqlml";
+    sha256 = "sha256-MBdtKtKMWwCy4tIcXqGu+PuvQKj52fcjxnxgUx87czA=";
   };
 
+  patches = [
+    # Enable building with bash 5.1/5.2
+    # Remove with any upstream 5.1-x.y.z release
+    (fetchpatch {
+      url = "https://raw.githubusercontent.com/freebsd/freebsd-ports/569fbb806d9ee813afa8b27d2098a44f93433922/devel/bashdb/files/patch-configure";
+      sha256 = "19zfzcnxavndyn6kfxp775kjcd0gigsm4y3bnh6fz5ilhnnbbbgr";
+    })
+  ];
+  patchFlags = "-p0";
+
   nativeBuildInputs = [
     makeWrapper
   ];