2023-05-18 15:51:25 -04:00
|
|
|
(define-module (ryan-packages freedesktop)
|
|
|
|
#:use-module (guix download)
|
2023-06-11 01:02:40 -04:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix gexp)
|
|
|
|
#:use-module (guix build-system meson)
|
|
|
|
#:use-module (guix build-system qt)
|
2023-05-18 15:51:25 -04:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix git-download)
|
|
|
|
#:use-module (guix utils)
|
|
|
|
#:use-module (gnu packages)
|
2023-06-11 01:02:40 -04:00
|
|
|
#:use-module (gnu packages gl)
|
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
#:use-module (gnu packages qt)
|
|
|
|
#:use-module (gnu packages cmake)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2023-05-18 15:51:25 -04:00
|
|
|
#:use-module (gnu packages freedesktop)
|
2023-06-11 01:02:40 -04:00
|
|
|
#:use-module (rosenthal packages wm)
|
2023-05-18 15:51:25 -04:00
|
|
|
#:use-module (gnu packages wm))
|
|
|
|
|
|
|
|
(define-public xdg-desktop-portal-wlr-new
|
|
|
|
(package
|
|
|
|
(inherit xdg-desktop-portal-wlr)
|
|
|
|
(version "0.7.0")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/emersion/xdg-desktop-portal-wlr")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1b3hpp3ybjgnnmnwsyb5bsnvz9q5nr3zz0j1alh02g24f68lf00k"))
|
|
|
|
(patches (search-patches "xdg-desktop-portal-wlr-harcoded-length.patch"))))
|
|
|
|
(native-inputs (modify-inputs (package-native-inputs xdg-desktop-portal-wlr)
|
|
|
|
(append wlroots)))))
|
2023-06-11 01:02:40 -04:00
|
|
|
|
|
|
|
(define-public xdg-desktop-portal-hyprland
|
|
|
|
(package
|
|
|
|
(name "xdg-desktop-portal-hyprland")
|
2023-08-07 23:38:44 -04:00
|
|
|
(version "0.5.0")
|
2023-06-11 01:02:40 -04:00
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/hyprwm/xdg-desktop-portal-hyprland")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2023-08-07 23:38:44 -04:00
|
|
|
"1dmgc0w4wjj9hwqg17wg529v8sbxr6czp9s319d5407jm780x40b"))))
|
2023-06-11 01:02:40 -04:00
|
|
|
(build-system meson-build-system)
|
|
|
|
(arguments
|
|
|
|
(list
|
2023-07-15 15:03:45 -04:00
|
|
|
#:modules
|
|
|
|
'((guix build utils)
|
|
|
|
(guix build meson-build-system)
|
|
|
|
((guix build qt-build-system) #:prefix qt:))
|
|
|
|
#:imported-modules
|
|
|
|
(append %meson-build-system-modules
|
|
|
|
%qt-build-system-modules)
|
2023-07-05 21:15:23 -04:00
|
|
|
#:tests? #f
|
|
|
|
#:configure-flags #~(list "-Dsystemd=disabled")
|
|
|
|
#:phases
|
2023-07-15 15:03:45 -04:00
|
|
|
;; After building the portal, we need to build the share selector using qt
|
2023-07-05 21:15:23 -04:00
|
|
|
#~(modify-phases %standard-phases
|
2023-07-15 15:03:45 -04:00
|
|
|
(add-after 'install 'chdir
|
|
|
|
(lambda _ (chdir "../source/hyprland-share-picker/")))
|
|
|
|
(add-after 'chdir 'check-setup
|
|
|
|
(assoc-ref qt:%standard-phases 'check-setup))
|
2023-08-07 23:38:44 -04:00
|
|
|
(add-after 'check-setup 'qt-build
|
2023-07-15 15:03:45 -04:00
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
((assoc-ref qt:%standard-phases 'build)
|
|
|
|
#:inputs inputs
|
|
|
|
#:outputs outputs
|
|
|
|
#:configure-flags '()
|
2023-07-30 00:43:43 -04:00
|
|
|
#:qtbase #$(this-package-native-input "qtbase"))))
|
2023-07-15 15:03:45 -04:00
|
|
|
(add-after 'qt-build 'qt-install
|
2023-08-07 23:38:44 -04:00
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let ((share-picker (string-append (assoc-ref outputs "out")
|
|
|
|
"/bin")))
|
|
|
|
(install-file "build/hyprland-share-picker" share-picker)
|
|
|
|
#t)))
|
2023-07-15 15:03:45 -04:00
|
|
|
(add-after 'qt-install 'qt-wrap
|
|
|
|
(assoc-ref qt:%standard-phases 'qt-wrap)))))
|
2023-07-30 00:43:43 -04:00
|
|
|
(native-inputs (list cmake pkg-config qtbase))
|
2023-07-05 21:15:23 -04:00
|
|
|
(inputs (list elogind hyprland hyprland-protocols pipewire wayland-protocols wayland libinih mesa qtwayland `(,util-linux "lib")))
|
2023-06-11 01:02:40 -04:00
|
|
|
(home-page "")
|
|
|
|
(synopsis "test")
|
|
|
|
(description "test")
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
2023-07-05 21:15:23 -04:00
|
|
|
xdg-desktop-portal-hyprland
|