diff --git a/zilti/packages/hyprland.scm b/zilti/packages/hyprland.scm index d72cbfb..0949ebb 100644 --- a/zilti/packages/hyprland.scm +++ b/zilti/packages/hyprland.scm @@ -23,6 +23,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) + #:use-module (gnu packages cpio) #:use-module (gnu packages docbook) #:use-module (gnu packages elf) #:use-module (gnu packages file) @@ -225,12 +226,16 @@ command line tool called @code{udcli} that incorporates the library.") (string-append pre #$binutils "/bin/nm")) (("\\<(addr2line|objcopy)\\>" _ cmd) (string-append #$binutils "/bin/" cmd))))) - (add-before 'install 'install-headers + (add-after 'build 'install-headers (lambda _ - (let* ((output (assoc-ref %outputs "out")) - (out-header (string-append output "/include"))) - (copy-recursively "./include" output))))))) - (native-inputs (list cmake gcc-13 jq pkg-config)) + (with-directory-excursion + "../hyprland-source" + (invoke "ls" "protocols") + (invoke "sed" "-i" "/wlroots/d" "Makefile") + (invoke "make" + (string-append "PREFIX=" #$output) + "installheaders"))))))) + (native-inputs (list cmake gcc-13 jq pkg-config cpio)) (inputs (list cairo-for-hyprland gcc-13