summary refs log tree commit diff
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
parent2b8d48a9fc82b3e70a4402828cac6603dead937c (diff)
downloadnixlib-b48d954228e270ea041fbc674f742295d58478fc.tar
nixlib-b48d954228e270ea041fbc674f742295d58478fc.tar.gz
nixlib-b48d954228e270ea041fbc674f742295d58478fc.tar.bz2
nixlib-b48d954228e270ea041fbc674f742295d58478fc.tar.lz
nixlib-b48d954228e270ea041fbc674f742295d58478fc.tar.xz
nixlib-b48d954228e270ea041fbc674f742295d58478fc.tar.zst
nixlib-b48d954228e270ea041fbc674f742295d58478fc.zip
rednotebook: 1.8.1 -> 2.3
-rw-r--r--pkgs/applications/editors/rednotebook/default.nix35
-rw-r--r--pkgs/top-level/all-packages.nix2
-rw-r--r--pkgs/top-level/python-packages.nix2
3 files changed, 28 insertions, 11 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 ];
   };
 }
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 82ca5a10ffc7..a632eb3ece12 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -16361,6 +16361,8 @@ with pkgs;
 
   recode = callPackage ../tools/text/recode { };
 
+  rednotebook = python3Packages.callPackage ../applications/editors/rednotebook { };
+
   remotebox = callPackage ../applications/virtualization/remotebox { };
 
   retroshare = libsForQt5.callPackage ../applications/networking/p2p/retroshare { };
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index da7fae5f904e..36f9ff866299 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -22735,7 +22735,7 @@ EOF
     };
   };
 
-  redNotebook = callPackage ../applications/editors/rednotebook { };
+  redNotebook = pkgs.rednotebook; # Backwards compatibility alias.
 
   uncertainties = callPackage ../development/python-modules/uncertainties { };