nixpkgs/pkgs/applications/networking/giara/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
1.5 KiB
Nix
Raw Normal View History

2021-01-28 10:28:07 +00:00
{ lib
, fetchFromGitLab
2022-01-23 07:19:08 +00:00
, fetchpatch
2021-01-28 10:28:07 +00:00
, meson
, gobject-introspection
, pkg-config
, ninja
, python3
2022-01-23 07:19:08 +00:00
, wrapGAppsHook4
, gtk4
2021-01-28 10:28:07 +00:00
, gdk-pixbuf
, webkitgtk
2022-01-23 07:19:08 +00:00
, gtksourceview5
2021-01-28 10:28:07 +00:00
, glib-networking
2022-01-23 07:19:08 +00:00
, libadwaita
, appstream
2022-09-04 15:29:42 +00:00
, blueprint-compiler
2021-01-28 10:28:07 +00:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "giara";
2023-06-18 12:19:00 +00:00
version = "1.1.0";
2021-01-28 10:28:07 +00:00
format = "other";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = pname;
rev = version;
2023-06-18 12:19:00 +00:00
hash = "sha256-FTy0ElcoTGXG9eV85pUrF35qKDKOfYIovPtjLfTJVOg=";
2021-01-28 10:28:07 +00:00
};
nativeBuildInputs = [
2022-01-23 07:19:08 +00:00
appstream
2021-01-28 10:28:07 +00:00
meson
gobject-introspection
pkg-config
ninja
2022-01-23 07:19:08 +00:00
wrapGAppsHook4
2022-09-04 15:29:42 +00:00
blueprint-compiler
2021-01-28 10:28:07 +00:00
];
buildInputs = [
2022-01-23 07:19:08 +00:00
gtk4
2021-01-28 10:28:07 +00:00
gdk-pixbuf
webkitgtk
2022-01-23 07:19:08 +00:00
gtksourceview5
2021-01-28 10:28:07 +00:00
glib-networking
2022-01-23 07:19:08 +00:00
libadwaita
2021-01-28 10:28:07 +00:00
];
pythonPath = with python3.pkgs; [
pygobject3
pycairo
python-dateutil
2021-01-28 10:28:07 +00:00
praw
pillow
mistune
beautifulsoup4
];
2022-01-23 07:19:08 +00:00
postPatch = ''
substituteInPlace meson_post_install.py \
--replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
2023-06-18 12:19:00 +00:00
# blueprint-compiler expects "profile" to be a string.
substituteInPlace data/ui/headerbar.blp \
--replace "item { custom: profile; }" 'item { custom: "profile"; }'
2022-01-23 07:19:08 +00:00
'';
2021-01-28 10:28:07 +00:00
meta = with lib; {
description = "A Reddit app, built with Python, GTK and Handy; Created with mobile Linux in mind";
maintainers = with maintainers; [ dasj19 ];
homepage = "https://gitlab.gnome.org/World/giara";
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}