add qemu-with-rbd

This commit is contained in:
Yann Dupont 2021-08-03 15:18:35 +02:00
parent 219a1d8189
commit 0805c16e9a

View file

@ -57,6 +57,8 @@
#:use-module (gnu packages maths) #:use-module (gnu packages maths)
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (gnu packages cmake) #:use-module (gnu packages cmake)
#:use-module (gnu packages virtualization)
) )
@ -1249,6 +1251,42 @@ for most inputs, but the resulting compressed files are anywhere from 20% to
(define-public glicid-ceph glicid-ceph-14) (define-public glicid-ceph glicid-ceph-14)
(define-public qemu-with-rbd
(package
(inherit qemu)
(name "qemu-with-rbd")
; (arguments
; `(#:configure-flags
; (let ((gcc (string-append (assoc-ref %build-inputs "gcc") "/bin/gcc"))
; (out (assoc-ref %outputs "out")))
; (list (string-append "--cc=" gcc)
; ;; Some architectures insist on using HOST_CC.
; (string-append "--host-cc=" gcc)
; (string-append "--prefix=" out)
; "--sysconfdir=/etc"
; (string-append "--smbd=" out "/libexec/samba-wrapper")
; "--disable-debug-info --enable-rbd" ;for space considerations
; ;; The binaries need to be linked against -lrt.
; (string-append "--extra-ldflags=-lrt")))
; ;; Make build and test output verbose to facilitate investigation upon failure.
; ))
; (arguments
;
; `(#:tests? #f)
; )
(inputs `(("glicid-ceph:lib", glicid-ceph "lib" )
,@(package-inputs qemu)))
)
)