nixpkgs/pkgs/by-name/ba/bashdb/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

44 lines
1.0 KiB
Nix

{ lib
, stdenv
, fetchurl
, fetchpatch
, makeWrapper
, python3Packages
}:
stdenv.mkDerivation rec {
pname = "bashdb";
version = "5.0-1.1.2";
src = fetchurl {
url = "mirror://sourceforge/bashdb/${pname}-${version}.tar.bz2";
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
];
postInstall = ''
wrapProgram $out/bin/bashdb --prefix PYTHONPATH ":" "$(toPythonPath ${python3Packages.pygments})"
'';
meta = {
description = "Bash script debugger";
mainProgram = "bashdb";
homepage = "https://bashdb.sourceforge.net/";
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
};
}