lol
1{ stdenv, fetchurl, pythonPackages, gettext }:
2
3with stdenv.lib;
4stdenv.mkDerivation rec {
5
6 name = "cherrytree-${version}";
7 version = "0.38.5";
8
9 src = fetchurl {
10 url = "https://www.giuspen.com/software/${name}.tar.xz";
11 sha256 = "1ja3b14vm3yd26pf82p2qlld0flqkqvgdg2g33r5dav6wfq3pz6y";
12 };
13
14 buildInputs = with pythonPackages;
15 [ python gettext wrapPython pygtk dbus-python pygtksourceview ];
16
17 pythonPath = with pythonPackages;
18 [ pygtk dbus-python pygtksourceview ];
19
20 patches = [ ./subprocess.patch ];
21
22 installPhase = ''
23 python setup.py install --prefix="$out"
24
25 for file in "$out"/bin/*; do
26 wrapProgram "$file" \
27 --prefix PYTHONPATH : "$(toPythonPath $out):$PYTHONPATH"
28 done
29 '';
30
31 doCheck = false;
32
33 meta = {
34 description = "An hierarchical note taking application";
35 longDescription = ''
36 Cherrytree is an hierarchical note taking application,
37 featuring rich text, syntax highlighting and powerful search
38 capabilities. It organizes all information in units called
39 "nodes", as in a tree, and can be very useful to store any piece
40 of information, from tables and links to pictures and even entire
41 documents. All those little bits of information you have scattered
42 around your hard drive can be conveniently placed into a
43 Cherrytree document where you can easily find it.
44 '';
45 homepage = http://www.giuspen.com/cherrytree;
46 license = licenses.gpl3;
47 platforms = platforms.linux;
48 maintainers = [ maintainers.AndersonTorres ];
49 };
50}