summaryrefslogtreecommitdiff
path: root/pkgs/gradience.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/gradience.nix')
-rw-r--r--pkgs/gradience.nix83
1 files changed, 83 insertions, 0 deletions
diff --git a/pkgs/gradience.nix b/pkgs/gradience.nix
new file mode 100644
index 0000000..0ea72da
--- /dev/null
+++ b/pkgs/gradience.nix
@@ -0,0 +1,83 @@
+{
+ lib,
+ fetchFromGitHub,
+ python3Packages,
+ wrapGAppsHook,
+ blueprint-compiler,
+ desktop-file-utils,
+ gobject-introspection,
+ libadwaita,
+ libsoup_3,
+ libportal-gtk4,
+ meson,
+ ninja,
+ pkg-config,
+ material-color-utilities,
+ sassc,
+}: let
+ pythonDeps = with python3Packages; [
+ pygobject3
+ anyascii
+ cssutils
+ jinja2
+ lxml
+ material-color-utilities
+ pillow
+ pluggy
+ regex
+ svglib
+ Yapsy
+ ];
+in
+ python3Packages.buildPythonApplication rec {
+ pname = "gradience";
+ version = "0.4.1";
+ format = "other";
+
+ src = fetchFromGitHub {
+ owner = "GradienceTeam";
+ repo = "Gradience";
+ rev = version;
+ sha256 = "sha256-xR3wPU0ax9U4995GckC8UGJqrUErd+jS5z3D/jWCdXQ=";
+ };
+
+ nativeBuildInputs =
+ [
+ meson
+ ninja
+ blueprint-compiler
+ desktop-file-utils
+ gobject-introspection
+ libsoup_3
+ pkg-config
+ sassc
+ wrapGAppsHook
+ ]
+ ++ pythonDeps;
+
+ buildInputs = [
+ libadwaita
+ libportal-gtk4
+ libsoup_3
+ ];
+
+ pythonPath = pythonDeps;
+
+ dontWrapGApps = true;
+
+ preFixup = ''
+ makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
+ '';
+
+ postFixup = ''
+ wrapPythonProgramsIn "$out/bin" "$out/lib $pythonPath"
+ '';
+
+ meta = with lib; {
+ description = "A tool for customizing Libadwaita applications and the adw-gtk3 theme.";
+ homepage = "https://gradienceteam.github.io/";
+ license = licenses.gpl3;
+ maintainers = with maintainers; [getchoo];
+ platforms = platforms.linux;
+ };
+ }