Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 fetchpatch, 6 makeWrapper, 7 python3Packages, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "bashdb"; 12 version = "5.0-1.1.2"; 13 14 src = fetchurl { 15 url = "mirror://sourceforge/bashdb/${pname}-${version}.tar.bz2"; 16 sha256 = "sha256-MBdtKtKMWwCy4tIcXqGu+PuvQKj52fcjxnxgUx87czA="; 17 }; 18 19 patches = [ 20 # Enable building with bash 5.1/5.2 21 # Remove with any upstream 5.1-x.y.z release 22 (fetchpatch { 23 url = "https://raw.githubusercontent.com/freebsd/freebsd-ports/569fbb806d9ee813afa8b27d2098a44f93433922/devel/bashdb/files/patch-configure"; 24 sha256 = "19zfzcnxavndyn6kfxp775kjcd0gigsm4y3bnh6fz5ilhnnbbbgr"; 25 }) 26 ]; 27 patchFlags = [ "-p0" ]; 28 29 nativeBuildInputs = [ 30 makeWrapper 31 ]; 32 33 postInstall = '' 34 wrapProgram $out/bin/bashdb --prefix PYTHONPATH ":" "$(toPythonPath ${python3Packages.pygments})" 35 ''; 36 37 meta = { 38 description = "Bash script debugger"; 39 mainProgram = "bashdb"; 40 homepage = "https://bashdb.sourceforge.net/"; 41 license = lib.licenses.gpl2; 42 platforms = lib.platforms.linux; 43 }; 44}