diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-03-21 14:19:29 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-03-21 15:30:55 -0400 |
commit | ad85ca09777052426e801788032beb7592f0f21a (patch) | |
tree | e65705a209fef5a940ea8e496d0af21fe25dab68 /gnu/packages/electronics.scm | |
parent | 7f981c53df790bf1b5a33da77c0b926f64732576 (diff) | |
download | guix-ad85ca09777052426e801788032beb7592f0f21a.tar.gz |
gnu: openboardview: Unbundle imgui.
* gnu/packages/patches/openboardview-use-system-imgui.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/electronics.scm (openboardview)[source]: Delete "imgui" subdirectory from snippet and apply patch. [inputs]{imgui}: New input.
Diffstat (limited to 'gnu/packages/electronics.scm')
-rw-r--r-- | gnu/packages/electronics.scm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index 3631d08519..ab72c36563 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -56,7 +56,8 @@ #:use-module (gnu packages qt) #:use-module (gnu packages sdl) #:use-module (gnu packages sqlite) - #:use-module (gnu packages stb)) + #:use-module (gnu packages stb) + #:use-module (gnu packages toolkits)) (define-public libserialport (package @@ -264,14 +265,14 @@ supported devices, as well as input/output file format support.") (guix build utils))) (snippet '(with-directory-excursion "src" - ;; TODO: Unbundle ImGui. - (define keep (list "." ".." "imgui" "openboardview")) + (define keep (list "." ".." "openboardview")) (for-each (lambda (f) (when (eq? 'directory (stat:type (lstat f))) (delete-file-recursively f))) (scandir "." (negate (cut member <> keep)))))) (patches - (search-patches "openboardview-use-system-utf8.patch")) + (search-patches "openboardview-use-system-imgui.patch" + "openboardview-use-system-utf8.patch")) (sha256 (base32 "1n2yfi8wpky0y231kq2zdgwn7f7kff8m53m904hxi5ppmwhx1d6q")))) @@ -327,6 +328,7 @@ supported devices, as well as input/output file format support.") (inputs (list fontconfig gtk+ + imgui sdl2 sqlite zlib)) |