Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / gradience / default.nix
blobfcb7d10c0162e73f3540d900aaafb7c4b073c255
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , wrapGAppsHook4
5 , meson
6 , ninja
7 , pkg-config
8 , glib
9 , glib-networking
10 , desktop-file-utils
11 , gettext
12 , librsvg
13 , blueprint-compiler
14 , python3Packages
15 , sassc
16 , appstream-glib
17 , libadwaita
18 , libportal
19 , libportal-gtk4
20 , libsoup_3
21 , gobject-introspection
24 python3Packages.buildPythonApplication rec {
25   pname = "gradience";
26   version = "0.4.1";
28   src = fetchFromGitHub {
29     owner = "GradienceTeam";
30     repo = "Gradience";
31     # See https://github.com/GradienceTeam/Gradience/releases/tag/0.4.1-patch1
32     rev = "0.4.1-patch1";
33     sha256 = "sha256-5jloFbimJC4jP1C1uS8a9VlqyR5qqDuqcKvUXwr9SjY=";
34   };
36   format = "other";
37   dontWrapGApps = true;
39   nativeBuildInputs = [
40     appstream-glib
41     blueprint-compiler
42     desktop-file-utils
43     gettext
44     glib
45     gobject-introspection
46     meson
47     ninja
48     pkg-config
49     wrapGAppsHook4
50     sassc
51   ];
53   buildInputs = [
54     glib-networking
55     libadwaita
56     libportal
57     libportal-gtk4
58     librsvg
59     libsoup_3
60   ];
62   propagatedBuildInputs = with python3Packages; [
63     anyascii
64     jinja2
65     lxml
66     material-color-utilities
67     pygobject3
68     svglib
69     yapsy
70   ];
72   preFixup = ''
73     makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
74   '';
76   meta = with lib; {
77     homepage = "https://github.com/GradienceTeam/Gradience";
78     description = "Customize libadwaita and GTK3 apps (with adw-gtk3)";
79     license = licenses.gpl3Plus;
80     maintainers = with maintainers; [ foo-dogsquared ];
81   };