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
1 changed files with 10 additions and 5 deletions

View File

@ -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