@@ -0,0 +1,36 @@
1+{ stdenv, fetchurl, python, pythonPackages, gettext, pygtksourceview, sqlite }:
2+
3+stdenv.mkDerivation rec {
4+ name = "cherrytree-0.35.6";
5+
6+ src = fetchurl {
7+ url = "http://www.giuspen.com/software/${name}.tar.xz";
8+ sha256 = "1nfrnnwaxb07jf5c3id8zimr3q3rbhvzjlmpb99d41d7hqrd2bxj";
9+ };
10+
11+ propagatedBuildInputs = [ pythonPackages.sqlite3 ];
12+
13+ buildInputs = with pythonPackages; [ python gettext wrapPython pygtk dbus pygtksourceview ];
14+
15+ pythonPath = with pythonPackages; [ pygtk dbus pygtksourceview ];
16+
17+ patches = [ ./subprocess.patch ];
18+
19+ installPhase = ''
20+ python setup.py install --prefix="$out"
21+
22+ for file in "$out"/bin/*; do
23+ wrapProgram "$file" \
24+ --prefix PYTHONPATH : "$(toPythonPath $out):$PYTHONPATH"
25+ done
26+ '';
27+
28+ doCheck = false;
29+
30+ meta = {
31+ description = "A hierarchical note taking application, featuring rich text and syntax highlighting, storing data in a single xml or sqlite file";
32+ homepage = http://www.giuspen.com/cherrytree;
33+ license = stdenv.lib.licenses.gpl3;
34+ platforms = with stdenv.lib.platforms; linux;
35+ };
36+}