Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

64 lines
1.4 KiB
Nix

{
lib,
buildPythonApplication,
fetchFromGitHub,
gdk-pixbuf,
glib,
gobject-introspection,
gtk3,
gtksourceview,
pango,
webkitgtk_4_1,
pygobject3,
pyyaml,
setuptools,
}:
buildPythonApplication rec {
pname = "rednotebook";
version = "2.41";
pyproject = true;
src = fetchFromGitHub {
owner = "jendrikseipp";
repo = "rednotebook";
tag = "v${version}";
sha256 = "sha256-sWfazIeROc3Pf4pUaUdcF00A5AV7bxzwI3R6eoSQkto=";
};
# We have not packaged tests.
doCheck = false;
nativeBuildInputs = [ gobject-introspection ];
build-system = [ setuptools ];
propagatedBuildInputs = [
gdk-pixbuf
glib
gtk3
gtksourceview
pango
webkitgtk_4_1
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"
];
pythonImportsCheck = [ "rednotebook" ];
meta = with lib; {
homepage = "https://rednotebook.sourceforge.io/";
changelog = "https://github.com/jendrikseipp/rednotebook/blob/${src.tag}/CHANGELOG.md";
description = "Modern journal that includes a calendar navigation, customizable templates, export functionality and word clouds";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ orivej ];
mainProgram = "rednotebook";
};
}