diff options
Diffstat (limited to 'pkgs/applications/misc/cherrytree/default.nix')
-rw-r--r-- | pkgs/applications/misc/cherrytree/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/misc/cherrytree/default.nix b/pkgs/applications/misc/cherrytree/default.nix new file mode 100644 index 00000000000..fa5ae99f4fb --- /dev/null +++ b/pkgs/applications/misc/cherrytree/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchurl, python, pythonPackages, gettext, pygtksourceview, sqlite }: + +stdenv.mkDerivation rec { + name = "cherrytree-0.35.7"; + + src = fetchurl { + url = "http://www.giuspen.com/software/${name}.tar.xz"; + sha256 = "03p3bx7skc361rmh0axhm0fa0inmxv4bpa9l566wskb3zq4sy4g3"; + }; + + 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; + }; +} |