summary refs log tree commit diff
path: root/pkgs/applications/misc/cherrytree/default.nix
blob: eb73f48559a6ae3495f9929aa110c70c85031908 (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
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, fetchurl, python, pythonPackages, gettext, pygtksourceview, sqlite }:

stdenv.mkDerivation rec {
  name = "cherrytree-0.35.8";

  src = fetchurl {
    url = "http://www.giuspen.com/software/${name}.tar.xz";
    sha256 = "0vqc1idzd73f4q5f4zwwypj4jiivwnb4y0r3041h2pm08y1wgsd8";
  };

  propagatedBuildInputs = [ pythonPackages.sqlite3 ];

  buildInputs = with pythonPackages; [ python gettext wrapPython pygtk dbus pygtksourceview ];

  pythonPath = with pythonPackages; [ pygtk dbus pygtksourceview ];

  patches = [ ./subprocess.patch ];

  installPhase = ''
    python setup.py install --prefix="$out"

    for file in "$out"/bin/*; do
        wrapProgram "$file" \
            --prefix PYTHONPATH : "$(toPythonPath $out):$PYTHONPATH"
    done
  '';

  doCheck = false;

  meta = {
    description = "A hierarchical note taking application, featuring rich text and syntax highlighting, storing data in a single xml or sqlite file";
    homepage = http://www.giuspen.com/cherrytree;
    license = stdenv.lib.licenses.gpl3;
    platforms = with stdenv.lib.platforms; linux;
  };
}