summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/ryan-packages/freedesktop.scm28
1 files changed, 23 insertions, 5 deletions
diff --git a/modules/ryan-packages/freedesktop.scm b/modules/ryan-packages/freedesktop.scm
index e5db0af..7cb9e8e 100644
--- a/modules/ryan-packages/freedesktop.scm
+++ b/modules/ryan-packages/freedesktop.scm
@@ -49,15 +49,33 @@
49 (build-system meson-build-system) 49 (build-system meson-build-system)
50 (arguments 50 (arguments
51 (list 51 (list
52 #:modules
53 '((guix build utils)
54 (guix build meson-build-system)
55 ((guix build qt-build-system) #:prefix qt:))
56 #:imported-modules
57 (append %meson-build-system-modules
58 %qt-build-system-modules)
52 #:tests? #f 59 #:tests? #f
53 #:configure-flags #~(list "-Dsystemd=disabled") 60 #:configure-flags #~(list "-Dsystemd=disabled")
54 #:phases 61 #:phases
62 ;; After building the portal, we need to build the share selector using qt
55 #~(modify-phases %standard-phases 63 #~(modify-phases %standard-phases
56 (add-after 'build 'chdir-and-build 64 (add-after 'install 'chdir
57 (lambda _ (chdir "../source/hyprland-share-picker/") 65 (lambda _ (chdir "../source/hyprland-share-picker/")))
58 (invoke "make"))) 66 (add-after 'chdir 'check-setup
59 (add-after 'install 'install-picker 67 (assoc-ref qt:%standard-phases 'check-setup))
60 (lambda _ (install-file "hyprland-share-picker" (string-append #$output "/bin"))))))) 68 (add-after 'check-setup 'qt-build-new
69 (lambda* (#:key inputs outputs #:allow-other-keys)
70 ((assoc-ref qt:%standard-phases 'build)
71 #:inputs inputs
72 #:outputs outputs
73 #:configure-flags '()
74 #:qtbase (let ((module (resolve-interface '(gnu packages qt))))(module-ref module 'qtbase)))))
75 (add-after 'qt-build 'qt-install
76 (assoc-ref qt:%standard-phases 'install))
77 (add-after 'qt-install 'qt-wrap
78 (assoc-ref qt:%standard-phases 'qt-wrap)))))
61 (native-inputs (list cmake pkg-config)) 79 (native-inputs (list cmake pkg-config))
62 (inputs (list elogind hyprland hyprland-protocols pipewire wayland-protocols wayland libinih mesa qtwayland `(,util-linux "lib"))) 80 (inputs (list elogind hyprland hyprland-protocols pipewire wayland-protocols wayland libinih mesa qtwayland `(,util-linux "lib")))
63 (home-page "") 81 (home-page "")