nixos-config/pkgs/gradience/default.nix

82 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, wrapGAppsHook4
, meson
, ninja
, pkg-config
, glib
, desktop-file-utils
, gettext
, librsvg
, blueprint-compiler
, python3Packages
, appstream-glib
, libadwaita
, libportal
, libportal-gtk4
, gobject-introspection
, python-material-color-utilities
, sassc
}:
# 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";
version = "0.3.0";
src = fetchFromGitHub {
2022-08-22 12:23:49 +00:00
owner = "GradienceTeam";
repo = "Gradience";
rev = version;
sha256 = "sha256-mTRkuKqeHrLiohp4l8izaZhixIRei0peKQZOiXxna2Y=";
};
format = "other";
dontWrapGApps = true;
nativeBuildInputs = [
appstream-glib
blueprint-compiler
desktop-file-utils
gettext
glib
gobject-introspection
meson
ninja
pkg-config
wrapGAppsHook4
sassc
2022-08-13 14:24:55 +00:00
];
buildInputs = [
libadwaita
libportal
libportal-gtk4
librsvg
];
propagatedBuildInputs = with python3Packages; [
anyascii
aiohttp
cssutils
jinja2
2022-09-03 02:52:08 +00:00
pygobject3
svglib
Yapsy
] ++ [
python-material-color-utilities
];
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = with lib; {
2022-08-22 12:23:49 +00:00
homepage = "https://github.com/GradienceTeam/Gradience";
description = "Customize libadwaita and GTK3 apps (with adw-gtk3)";
license = licenses.mit;
};
}