diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-07-15 15:03:45 -0400 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-07-15 15:03:45 -0400 |
commit | d96fae90d7ab61560b74013f7225a132c691144f (patch) | |
tree | 361d014d4f572f37f0607099f4e7116fb52c72b7 /modules/ryan-packages/freedesktop.scm | |
parent | 8cebfbd1d7c05451796c425076d48d562f0fbaa2 (diff) |
Some prelim changes, THIS BRANCH DOES NOT WORK
Diffstat (limited to 'modules/ryan-packages/freedesktop.scm')
-rw-r--r-- | modules/ryan-packages/freedesktop.scm | 28 |
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 "") |