diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2024-02-06 23:11:12 -0500 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2024-02-06 23:11:12 -0500 |
commit | fa95cb0d17d8c745e12108e7a76c9d9923035722 (patch) | |
tree | e500c37e936098076698ef5b3684f2701f498ecc /modules | |
parent | fa5aee533c50ccbdab96c1d27fe71edf074a7c68 (diff) |
rotated channel commit pins and updated hyprland xdg-portal
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ryan-packages/freedesktop.scm | 49 |
1 files changed, 11 insertions, 38 deletions
diff --git a/modules/ryan-packages/freedesktop.scm b/modules/ryan-packages/freedesktop.scm index 1dd5d0d..0deb449 100644 --- a/modules/ryan-packages/freedesktop.scm +++ b/modules/ryan-packages/freedesktop.scm | |||
@@ -44,7 +44,7 @@ | |||
44 | (define-public xdg-desktop-portal-hyprland-ryan | 44 | (define-public xdg-desktop-portal-hyprland-ryan |
45 | (package | 45 | (package |
46 | (name "xdg-desktop-portal-hyprland") | 46 | (name "xdg-desktop-portal-hyprland") |
47 | (version "1.2.4") | 47 | (version "1.2.6") |
48 | (source (origin | 48 | (source (origin |
49 | (method git-fetch) | 49 | (method git-fetch) |
50 | (uri (git-reference | 50 | (uri (git-reference |
@@ -57,48 +57,21 @@ | |||
57 | (build-system meson-build-system) | 57 | (build-system meson-build-system) |
58 | (arguments | 58 | (arguments |
59 | (list | 59 | (list |
60 | #:modules | ||
61 | '((guix build utils) | ||
62 | (guix build meson-build-system) | ||
63 | ((guix build qt-build-system) #:prefix qt:)) | ||
64 | #:imported-modules | ||
65 | (append %meson-build-system-modules | ||
66 | %qt-build-system-modules) | ||
67 | #:tests? #f | 60 | #:tests? #f |
68 | #:configure-flags #~(list "-Dsystemd=disabled") | 61 | #:configure-flags #~(list "-Dsystemd=disabled") |
69 | #:phases | 62 | #:phases |
70 | ;; After building the portal, we need to build the share selector using qt | 63 | ;; After building the portal, we need to build the share selector using qt |
71 | #~(modify-phases %standard-phases | 64 | #~(modify-phases %standard-phases |
72 | (add-after 'install 'chdir | 65 | (add-after `unpack `fix-path |
73 | (lambda _ (chdir "../source/hyprland-share-picker/"))) | 66 | (lambda* (#:key inputs #:allow-other-keys) |
74 | (add-after 'chdir 'check-setup | 67 | (substitute* (find-files "." "\\.cp?*$") |
75 | (assoc-ref qt:%standard-phases 'check-setup)) | 68 | (("/bin/sh") "sh") |
76 | (add-after 'check-setup 'qt-build | 69 | (("\\<(sh|grim|hyprctl|slurp)\\>" _ cmd) |
77 | (lambda* (#:key inputs outputs #:allow-other-keys) | 70 | (search-input-files inputs (string-append "/bin/" cmd))) |
78 | ((assoc-ref qt:%standard-phases 'build) | 71 | (("\\<(hyprctl-share-picker)\\>" _ cmd) |
79 | #:inputs inputs | 72 | (string-append #$output "/bin/" cmd)))))))) |
80 | #:outputs outputs | 73 | (native-inputs (list gcc-13 pkg-config wayland)) |
81 | #:configure-flags '() | 74 | (inputs (list bash-minimal grim hyprland hyprland-protocols mesa pipewire qtbase-5 sdbus-c++ slurp wayland-protocols)) |
82 | #:qtbase #$(this-package-native-input "qtbase-5")))) | ||
83 | (add-after 'qt-build 'qt-install | ||
84 | (lambda* (#:key inputs outputs #:allow-other-keys) | ||
85 | (let ((share-picker (string-append (assoc-ref outputs "out") | ||
86 | "/bin"))) | ||
87 | (install-file "build/hyprland-share-picker" share-picker) | ||
88 | #t))) | ||
89 | (add-after 'qt-install 'qt-wrap | ||
90 | (assoc-ref qt:%standard-phases 'qt-wrap)) | ||
91 | (add-after 'qt-wrap 'dep-wrap | ||
92 | (lambda* (#:key inputs #:allow-other-keys) | ||
93 | (let ((hyprland-share-picker (string-append #$output "/bin/hyprland-share-picker"))) | ||
94 | (wrap-program hyprland-share-picker | ||
95 | `("PATH" suffix | ||
96 | ,(map (lambda (program) | ||
97 | (dirname (search-input-file | ||
98 | inputs (string-append "/bin/" program)))) | ||
99 | '("slurp")))))))))) | ||
100 | (native-inputs (list gcc-13 cmake pkg-config qtbase-5)) | ||
101 | (inputs (list elogind hyprland hyprland-protocols slurp pipewire wayland-protocols wayland libinih mesa sdbus-c++ qtwayland-5 `(,util-linux "lib"))) | ||
102 | (home-page "") | 75 | (home-page "") |
103 | (synopsis "test") | 76 | (synopsis "test") |
104 | (description "test") | 77 | (description "test") |