summary refs log tree commit diff
path: root/pkgs/development/tools/pydb/default.nix
blob: eaaa057dc0a27eb31d44d29f71088871546f9488 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, stdenv, fetchurl, python2, emacs }:

stdenv.mkDerivation {
  name = "pydb-1.26";

  src = fetchurl {
    url =  "mirror://sourceforge/sourceforge/bashdb/pydb-1.26.tar.bz2";
    sha256 = "1wlkz1hd5d4gkzhkjkzcm650c1lchj28hj36jx96mklglm41h4q1";
  };

  buildInputs = [ python2 emacs /* emacs is optional */ ];

  preConfigure = ''
    p="$(toPythonPath $out)"
    configureFlags="$configureFlags --with-python=${python2.interpreter} --with-site-packages=$p"
  '';

  meta = {
    description = "Python debugger with GDB-like commands and Emacs bindings";
    homepage = "http://bashdb.sourceforge.net/pydb/";
    license = lib.licenses.gpl3;
    platforms = lib.platforms.all;
  };
}