diff options
author | phodina <phodina@protonmail.com> | 2021-11-17 17:08:21 +0000 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-04-23 20:51:03 +0900 |
commit | 699ce22ed812cf8cfcdd8d0341829f8fac2c864a (patch) | |
tree | 58206c2861d110f0041fc995bbce19fc8c1b3e05 | |
parent | 1205cffa7f1faf44c81dda3d7b1bff7d3c3841f1 (diff) | |
download | guix-699ce22ed812cf8cfcdd8d0341829f8fac2c864a.tar.gz guix-699ce22ed812cf8cfcdd8d0341829f8fac2c864a.zip |
gnu: Add postmarketos-tweaks.
* gnu/packages/gnome.scm (postmarketos-tweaks): New variable.
Co-authored-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I958af7a2ada17486ad69e0e812908c30c88cee60
-rw-r--r-- | gnu/packages/gnome-xyz.scm | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index 5351b043a3..274931bada 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm @@ -1652,6 +1652,66 @@ postmarketOS green. There's also the oled and paper variants of the theme that are completely black and completely white.") (license license:lgpl2.0+))) +(define-public postmarketos-tweaks + (package + (name "postmarketos-tweaks") + (version "0.13.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/postmarketOS/postmarketos-tweaks") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "020blf2v588q9g5zq8imcii7iykca7v5an6if6bf9p4fd3yh7ar8")))) + (build-system meson-build-system) + (arguments + (list + #:imported-modules `(,@%meson-build-system-modules + (guix build python-build-system)) + #:modules '((guix build meson-build-system) + ((guix build python-build-system) #:prefix python:) + (guix build utils)) + #:glib-or-gtk? #t + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-install-dir + (lambda* _ + (substitute* "data/meson.build" + (("/etc/init.d") (string-append %output "/etc/init.d"))))) + (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((bin (string-append #$output "/bin/"))) + (for-each + (lambda (program) + (wrap-program (string-append bin program) + `("GUIX_PYTHONPATH" = + (,(getenv "GUIX_PYTHONPATH") + ,(python:site-packages inputs outputs))) + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))) + (list "pmos-tweaks" "pmos-tweakd" "pk-tweaks-action"))))) + (add-after 'glib-or-gtk-wrap 'python-wrap + (assoc-ref python:%standard-phases 'wrap))))) + (native-inputs + (list desktop-file-utils ;for update-desktop-database + `(,gtk+ "bin") ;for gtk-update-icon-cache + `(,glib "bin") ;glib-compile-schemas, etc. + pkg-config)) + (inputs + (list bash-minimal + gtk+ + libhandy + python + python-pygobject + python-pyyaml)) + (home-page "https://gitlab.com/postmarketOS/postmarketos-tweaks") + (synopsis "Settings configuration utility for postmarketOS") + (description "postmarketOS tweaks is an application for tweaking settings +on desktop environments supported by postmarketOS.") + (license license:lgpl3+))) + (define-public eiciel (package (name "eiciel") |