working build! Just need to wrap deps

This commit is contained in:
Ryan 2023-08-07 23:38:44 -04:00
parent 193d559a19
commit b5d987e6dc
Signed by: ryan77627
GPG key ID: 81B0E222A3E2308E

View file

@ -36,7 +36,7 @@
(define-public xdg-desktop-portal-hyprland
(package
(name "xdg-desktop-portal-hyprland")
(version "0.4.0")
(version "0.5.0")
(source (origin
(method git-fetch)
(uri (git-reference
@ -45,7 +45,7 @@
(file-name (git-file-name name version))
(sha256
(base32
"1dcglmx02j73qbmw9qsacamn8byakyzwknpqjnhsyphixb4crrdg"))))
"1dmgc0w4wjj9hwqg17wg529v8sbxr6czp9s319d5407jm780x40b"))))
(build-system meson-build-system)
(arguments
(list
@ -65,17 +65,19 @@
(lambda _ (chdir "../source/hyprland-share-picker/")))
(add-after 'chdir 'check-setup
(assoc-ref qt:%standard-phases 'check-setup))
(add-after 'check-setup 'qt-build-new
(add-after 'check-setup 'qt-build
(lambda* (#:key inputs outputs #:allow-other-keys)
((assoc-ref qt:%standard-phases 'build)
#:inputs inputs
#:outputs outputs
#:configure-flags '()
;#:qtbase (let ((module (resolve-interface '(gnu packages qt))))(module-ref module 'qtbase))))) <--- This results in no code for module (gnu packages qt)
#:qtbase #$(this-package-native-input "qtbase"))))
;)))
(add-after 'qt-build 'qt-install
(assoc-ref qt:%standard-phases 'install))
(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)))
(add-after 'qt-install 'qt-wrap
(assoc-ref qt:%standard-phases 'qt-wrap)))))
(native-inputs (list cmake pkg-config qtbase))