From 5a5f0a814cb67695ec1536e38b139092d5e5ce4c Mon Sep 17 00:00:00 2001 From: sunder Date: Wed, 14 Feb 2024 12:13:59 +0300 Subject: [PATCH] errands: init at 45.1.9 --- pkgs/by-name/er/errands/package.nix | 67 +++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 pkgs/by-name/er/errands/package.nix diff --git a/pkgs/by-name/er/errands/package.nix b/pkgs/by-name/er/errands/package.nix new file mode 100644 index 000000000000..36a988472a91 --- /dev/null +++ b/pkgs/by-name/er/errands/package.nix @@ -0,0 +1,67 @@ +{ lib +, fetchFromGitHub +, python3Packages +, gobject-introspection +, libadwaita +, wrapGAppsHook +, meson +, ninja +, desktop-file-utils +, pkg-config +, appstream +, libsecret +, gtk4 +, gtksourceview5 +}: + +python3Packages.buildPythonApplication rec { + pname = "errands"; + version = "45.1.9"; + + pyproject = false; + + src = fetchFromGitHub { + owner = "mrvladus"; + repo = "Errands"; + rev = "refs/tags/${version}"; + hash = "sha256-q8vmT7XUx3XJjPfbEd/c3HrTENfopl1MqwT0x5OuG0c="; + }; + + nativeBuildInputs = [ + gobject-introspection + wrapGAppsHook + desktop-file-utils + meson + ninja + pkg-config + appstream + gtk4 + ]; + + buildInputs = [ + libadwaita + libsecret + gtksourceview5 + ]; + + propagatedBuildInputs = with python3Packages; [ + pygobject3 + lxml + caldav + pycryptodomex + ]; + + dontWrapGApps = true; + + preFixup = '' + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + + meta = with lib; { + description = "Manage your tasks"; + homepage = "https://github.com/mrvladus/Errands"; + license = licenses.mit; + mainProgram = "errands"; + maintainers = with maintainers; [ sund3RRR ]; + }; +}