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

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

79 lines
1.5 KiB
Nix
Raw Normal View History

2021-01-28 11:28:07 +01:00
{ lib
, fetchFromGitLab
2022-01-23 08:19:08 +01:00
, fetchpatch
2021-01-28 11:28:07 +01:00
, meson
, gobject-introspection
, pkg-config
, ninja
, python3
2022-01-23 08:19:08 +01:00
, wrapGAppsHook4
, gtk4
2021-01-28 11:28:07 +01:00
, gdk-pixbuf
, webkitgtk
2022-01-23 08:19:08 +01:00
, gtksourceview5
2021-01-28 11:28:07 +01:00
, glib-networking
2022-01-23 08:19:08 +01:00
, libadwaita
, appstream
2022-09-04 17:29:42 +02:00
, blueprint-compiler
2021-01-28 11:28:07 +01:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "giara";
2023-06-18 14:19:00 +02:00
version = "1.1.0";
2021-01-28 11:28:07 +01:00
format = "other";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = pname;
rev = version;
2023-06-18 14:19:00 +02:00
hash = "sha256-FTy0ElcoTGXG9eV85pUrF35qKDKOfYIovPtjLfTJVOg=";
2021-01-28 11:28:07 +01:00
};
nativeBuildInputs = [
2022-01-23 08:19:08 +01:00
appstream
2021-01-28 11:28:07 +01:00
meson
gobject-introspection
pkg-config
ninja
2022-01-23 08:19:08 +01:00
wrapGAppsHook4
2022-09-04 17:29:42 +02:00
blueprint-compiler
2021-01-28 11:28:07 +01:00
];
buildInputs = [
2022-01-23 08:19:08 +01:00
gtk4
2021-01-28 11:28:07 +01:00
gdk-pixbuf
webkitgtk
2022-01-23 08:19:08 +01:00
gtksourceview5
2021-01-28 11:28:07 +01:00
glib-networking
2022-01-23 08:19:08 +01:00
libadwaita
2021-01-28 11:28:07 +01:00
];
pythonPath = with python3.pkgs; [
pygobject3
pycairo
python-dateutil
2021-01-28 11:28:07 +01:00
praw
pillow
mistune
beautifulsoup4
];
2022-01-23 08:19:08 +01:00
postPatch = ''
substituteInPlace meson_post_install.py \
--replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
2023-06-18 14:19:00 +02:00
# blueprint-compiler expects "profile" to be a string.
substituteInPlace data/ui/headerbar.blp \
--replace "item { custom: profile; }" 'item { custom: "profile"; }'
2022-01-23 08:19:08 +01:00
'';
2021-01-28 11:28:07 +01: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;
2023-11-27 02:17:53 +01:00
mainProgram = "giara";
2021-01-28 11:28:07 +01:00
};
}