2021-09-27 00:45:46 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, makeWrapper
|
|
|
|
, python3Packages
|
|
|
|
}:
|
2017-01-29 22:05:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bashdb";
|
2021-09-27 00:45:46 +01:00
|
|
|
version = "5.0-1.1.2";
|
2017-01-29 22:05:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/bashdb/${pname}-${version}.tar.bz2";
|
2021-09-27 00:45:46 +01:00
|
|
|
sha256 = "sha256-MBdtKtKMWwCy4tIcXqGu+PuvQKj52fcjxnxgUx87czA=";
|
2017-01-29 22:05:04 +00:00
|
|
|
};
|
|
|
|
|
2021-09-27 00:45:46 +01:00
|
|
|
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";
|
|
|
|
|
2018-11-15 14:15:35 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/bashdb --prefix PYTHONPATH ":" "$(toPythonPath ${python3Packages.pygments})"
|
|
|
|
'';
|
|
|
|
|
2017-11-13 18:10:12 +00:00
|
|
|
meta = {
|
2017-01-29 22:05:04 +00:00
|
|
|
description = "Bash script debugger";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://bashdb.sourceforge.net/";
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
2017-01-29 22:05:04 +00:00
|
|
|
};
|
|
|
|
}
|