gnu: libcamera: Rewrite package argument to G-expression.
* gnu/packages/networking.scm (libcamera)[arguments]: Use G-expression.
This commit is contained in:
parent
7d8ce0701e
commit
96e521425d
1 changed files with 21 additions and 23 deletions
|
@ -365,29 +365,27 @@ (define-public libcamera
|
|||
(build-system meson-build-system)
|
||||
(outputs '("out" "doc" "gst" "tools"))
|
||||
(arguments
|
||||
`(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
|
||||
#:configure-flags
|
||||
(list
|
||||
(string-append "-Dbindir=" (assoc-ref %outputs "tools") "/bin")
|
||||
"-Dtest=true"
|
||||
"-Dv4l2=true"
|
||||
;; XXX: Requires bundled pybind11.
|
||||
"-Dpycamera=disabled")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'install 'move-doc-and-gst
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(doc (assoc-ref outputs "doc"))
|
||||
(gst (assoc-ref outputs "gst")))
|
||||
(mkdir-p (string-append doc "/share"))
|
||||
(rename-file
|
||||
(string-append out "/share/doc")
|
||||
(string-append doc "/share/doc"))
|
||||
(mkdir-p (string-append gst "/lib"))
|
||||
(rename-file
|
||||
(string-append out "/lib/gstreamer-1.0")
|
||||
(string-append gst "/lib/gstreamer-1.0"))))))))
|
||||
(list #:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
|
||||
#:configure-flags
|
||||
#~(list (string-append "-Dbindir="
|
||||
(assoc-ref %outputs "tools") "/bin")
|
||||
"-Dtest=true" "-Dv4l2=true"
|
||||
;; XXX: Requires bundled pybind11.
|
||||
"-Dpycamera=disabled")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'install 'move-doc-and-gst
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(doc (assoc-ref outputs "doc"))
|
||||
(gst (assoc-ref outputs "gst")))
|
||||
(mkdir-p (string-append doc "/share"))
|
||||
(rename-file (string-append out "/share/doc")
|
||||
(string-append doc "/share/doc"))
|
||||
(mkdir-p (string-append gst "/lib"))
|
||||
(rename-file
|
||||
(string-append out "/lib/gstreamer-1.0")
|
||||
(string-append gst "/lib/gstreamer-1.0"))))))))
|
||||
(native-inputs
|
||||
(list googletest
|
||||
graphviz ;for 'dot'
|
||||
|
|
Loading…
Reference in a new issue