2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub
|
|
|
|
, gdk-pixbuf, glib, gobject-introspection, gtk3, gtksourceview, pango, webkitgtk
|
|
|
|
, pygobject3, pyyaml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "rednotebook";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "2.29.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jendrikseipp";
|
|
|
|
repo = "rednotebook";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-2qgWJ/bIravil/SuApA7pNXkxS5xUcdFpjVGO/ogDpw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# We have not packaged tests.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gobject-introspection ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gdk-pixbuf glib gtk3 gtksourceview 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"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Until gobject-introspection in nativeBuildInputs is supported.
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/56943#issuecomment-472568643
|
|
|
|
strictDeps = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://rednotebook.sourceforge.io/";
|
2022-02-20 05:27:41 +00:00
|
|
|
changelog = "https://github.com/jendrikseipp/rednotebook/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A modern journal that includes a calendar navigation, customizable templates, export functionality and word clouds";
|
2022-02-20 05:27:41 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ orivej ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|