This commit is contained in:
Daniel Ziltener 2024-04-05 17:03:59 +02:00
parent 023ac3591f
commit 0bf47ef97c
Signed by: zilti
GPG key ID: B38976E82C9DAE42

View file

@ -23,6 +23,7 @@
#:use-module (gnu packages check) #:use-module (gnu packages check)
#:use-module (gnu packages cmake) #:use-module (gnu packages cmake)
#:use-module (gnu packages compression) #:use-module (gnu packages compression)
#:use-module (gnu packages cpio)
#:use-module (gnu packages docbook) #:use-module (gnu packages docbook)
#:use-module (gnu packages elf) #:use-module (gnu packages elf)
#:use-module (gnu packages file) #: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")) (string-append pre #$binutils "/bin/nm"))
(("\\<(addr2line|objcopy)\\>" _ cmd) (("\\<(addr2line|objcopy)\\>" _ cmd)
(string-append #$binutils "/bin/" cmd))))) (string-append #$binutils "/bin/" cmd)))))
(add-before 'install 'install-headers (add-after 'build 'install-headers
(lambda _ (lambda _
(let* ((output (assoc-ref %outputs "out")) (with-directory-excursion
(out-header (string-append output "/include"))) "../hyprland-source"
(copy-recursively "./include" output))))))) (invoke "ls" "protocols")
(native-inputs (list cmake gcc-13 jq pkg-config)) (invoke "sed" "-i" "/wlroots/d" "Makefile")
(invoke "make"
(string-append "PREFIX=" #$output)
"installheaders")))))))
(native-inputs (list cmake gcc-13 jq pkg-config cpio))
(inputs (inputs
(list cairo-for-hyprland (list cairo-for-hyprland
gcc-13 gcc-13