aboutsummaryrefslogtreecommitdiff
path: root/pkgs/applications/editors/rednotebook/default.nix
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-11-06 23:45:57 +0000
committerOrivej Desh <orivej@gmx.fr>2017-11-07 00:18:30 +0000
commitb48d954228e270ea041fbc674f742295d58478fc (patch)
tree5abc3f07e51903e2aac4cbaf182ea3f34d8534a3 /pkgs/applications/editors/rednotebook/default.nix
parent2b8d48a9fc82b3e70a4402828cac6603dead937c (diff)
rednotebook: 1.8.1 -> 2.3
Diffstat (limited to 'pkgs/applications/editors/rednotebook/default.nix')
-rw-r--r--pkgs/applications/editors/rednotebook/default.nix35
1 files changed, 25 insertions, 10 deletions
diff --git a/pkgs/applications/editors/rednotebook/default.nix b/pkgs/applications/editors/rednotebook/default.nix
index ed4b16363051..1a0e6e54fb3e 100644
--- a/pkgs/applications/editors/rednotebook/default.nix
+++ b/pkgs/applications/editors/rednotebook/default.nix
@@ -1,22 +1,37 @@
-{ lib, buildPythonPackage, fetchurl, pygtk, pywebkitgtk, pyyaml, chardet }:
+{ lib, buildPythonApplication, fetchFromGitHub
+, gdk_pixbuf, glib, gtk3, pango, webkitgtk
+, pygobject3, pyyaml
+}:
-buildPythonPackage rec {
- name = "rednotebook-1.8.1";
+buildPythonApplication rec {
+ name = "rednotebook-${version}";
+ version = "2.3";
- src = fetchurl {
- url = "mirror://sourceforge/rednotebook/${name}.tar.gz";
- sha256 = "00b7s4xpqpxsbzjvjx9qsx5d84m9pvn383c5di1nsfh35pig0rzn";
+ src = fetchFromGitHub {
+ owner = "jendrikseipp";
+ repo = "rednotebook";
+ rev = "v${version}";
+ sha256 = "0zkfid104hcsf20r6829v11wxdghqkd3j1zbgyvd1s7q4nxjn5lj";
};
- # no tests available
+ # We have not packaged tests.
doCheck = false;
- propagatedBuildInputs = [ pygtk pywebkitgtk pyyaml chardet ];
+ propagatedBuildInputs = [
+ gdk_pixbuf glib gtk3 pango webkitgtk
+ pygobject3 pyyaml
+ ];
+
+ makeWrapperArgs = [
+ "--set GI_TYPELIB_PATH $GI_TYPELIB_PATH"
+ "--prefix XDG_DATA_DIRS : $out/share"
+ "--suffix XDG_DATA_DIRS : $XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
+ ];
meta = with lib; {
- homepage = http://rednotebook.sourceforge.net/index.html;
+ homepage = http://rednotebook.sourceforge.net/;
description = "A modern journal that includes a calendar navigation, customizable templates, export functionality and word clouds";
license = licenses.gpl2;
- maintainers = with maintainers; [ tstrobel ];
+ maintainers = with maintainers; [ orivej tstrobel ];
};
}