2022-08-07 11:01:44 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, gettext
|
2022-08-20 05:03:00 +00:00
|
|
|
, librsvg
|
2022-08-07 11:01:44 +00:00
|
|
|
, blueprint-compiler
|
|
|
|
, python3Packages
|
|
|
|
, appstream-glib
|
|
|
|
, libadwaita
|
|
|
|
, libportal
|
|
|
|
, libportal-gtk4
|
|
|
|
, gobject-introspection
|
2022-08-20 05:03:00 +00:00
|
|
|
, python-material-color-utilities
|
2022-09-20 08:52:10 +00:00
|
|
|
, sassc
|
2022-08-07 11:01:44 +00:00
|
|
|
}:
|
2022-07-19 03:58:13 +00:00
|
|
|
|
|
|
|
# Not all parts of the application works with the current nixpkgs version of
|
|
|
|
# libadwaita.
|
|
|
|
python3Packages.buildPythonApplication rec {
|
2022-08-22 12:23:49 +00:00
|
|
|
pname = "gradience";
|
2022-09-20 08:52:10 +00:00
|
|
|
version = "unstable-2022-09-20";
|
2022-07-19 03:58:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-08-22 12:23:49 +00:00
|
|
|
owner = "GradienceTeam";
|
|
|
|
repo = "Gradience";
|
2022-09-20 08:52:10 +00:00
|
|
|
rev = "8f11b8178bbc2bfb0b1fd6bc19f44add1fbddc9b";
|
|
|
|
sha256 = "sha256-SdAOI+LfBqz1fZNthb/JNxXSikemFpC7a4WYr/Xr6I4=";
|
2022-07-19 03:58:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-08-20 05:03:00 +00:00
|
|
|
appstream-glib
|
|
|
|
blueprint-compiler
|
2022-07-19 03:58:13 +00:00
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
2022-08-07 11:01:44 +00:00
|
|
|
glib
|
2022-08-20 05:03:00 +00:00
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook4
|
2022-09-20 08:52:10 +00:00
|
|
|
sassc
|
2022-08-13 14:24:55 +00:00
|
|
|
];
|
|
|
|
|
2022-08-20 05:03:00 +00:00
|
|
|
buildInputs = [
|
2022-07-19 03:58:13 +00:00
|
|
|
libadwaita
|
2022-07-27 02:16:16 +00:00
|
|
|
libportal
|
|
|
|
libportal-gtk4
|
2022-08-20 05:03:00 +00:00
|
|
|
librsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2022-07-27 02:16:16 +00:00
|
|
|
anyascii
|
2022-09-20 08:52:10 +00:00
|
|
|
aiohttp
|
|
|
|
cssutils
|
|
|
|
jinja2
|
2022-09-03 02:52:08 +00:00
|
|
|
pygobject3
|
|
|
|
svglib
|
2022-09-20 08:52:10 +00:00
|
|
|
Yapsy
|
2022-08-20 05:03:00 +00:00
|
|
|
] ++ [
|
|
|
|
python-material-color-utilities
|
|
|
|
];
|
2022-07-19 03:58:13 +00:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-08-22 12:23:49 +00:00
|
|
|
homepage = "https://github.com/GradienceTeam/Gradience";
|
2022-07-19 03:58:13 +00:00
|
|
|
description = "Customize libadwaita and GTK3 apps (with adw-gtk3)";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|