[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#39579] [PATCH v2 2/3] gnu: osinfo-db: Add osinfo-db.
From: |
Brice Waegeneire |
Subject: |
[bug#39579] [PATCH v2 2/3] gnu: osinfo-db: Add osinfo-db. |
Date: |
Sun, 16 Feb 2020 21:47:11 +0100 |
* gnu/packages/virtualization.scm (osinfo-db): New variable.
---
gnu/packages/virtualization.scm | 37 +++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index ca8f143f51..308cadbe14 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -92,6 +92,7 @@
#:use-module (guix build-system go)
#:use-module (guix build-system meson)
#:use-module (guix build-system python)
+ #:use-module (guix build-system trivial)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
@@ -1418,3 +1419,39 @@ which is a hypervisor.")
(description "This package contains a set of tools to assist
administrators and developers in managing the database.")
(license license:lgpl2.0+)))
+
+(define-public osinfo-db
+ (package
+ (name "osinfo-db")
+ (version "20200203")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
"https://releases.pagure.org/libosinfo/osinfo-db-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "1zjq1dhlci00j17dij7s3l30hybzmaykpk5b6bd5xbllp745njn5"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (osinfo-dir (string-append out "/share/osinfo"))
+ (source (assoc-ref %build-inputs "source"))
+ (osinfo-db-import
+ (string-append (assoc-ref %build-inputs "osinfo-db-tools")
+ "/bin/osinfo-db-import")))
+ (mkdir-p osinfo-dir)
+ (invoke osinfo-db-import "--dir" osinfo-dir source)
+ #t))))
+ (native-inputs
+ `(("intltool" ,intltool)
+ ("osinfo-db-tools" ,osinfo-db-tools)))
+ (home-page "https://gitlab.com/libosinfo/osinfo-db")
+ (synopsis "Database of information about operating systems")
+ (description "Osinfo-db provides the database files for use with the
+libosinfo library. It provides information about guest operating systems for
+use with virtualization provisioning tools")
+ (license license:lgpl2.0+)))
--
2.25.0
- [bug#39579] [PATCH 1/3] gnu: osinfo-db-tools: Add osinfo-db-tools., (continued)
- [bug#39579] [PATCH 1/3] gnu: osinfo-db-tools: Add osinfo-db-tools., Brice Waegeneire, 2020/02/12
- [bug#39579] [PATCH 2/3] gnu: osinfo-db: Add osinfo-db., Brice Waegeneire, 2020/02/12
- [bug#39579] [PATCH 3/3] gnu: virt-manager: Include operating systems list., Brice Waegeneire, 2020/02/12
- [bug#39579] [PATCH v2 0/3] Include operating systems list in virt-manager., Brice Waegeneire, 2020/02/16
- [bug#39579] [PATCH v2 1/3] gnu: osinfo-db-tools: Add osinfo-db-tools., Brice Waegeneire, 2020/02/16
- [bug#39579] [PATCH v2 3/3] gnu: libosinfo: Include operating systems list., Brice Waegeneire, 2020/02/16
- [bug#39579] [PATCH v2 2/3] gnu: osinfo-db: Add osinfo-db.,
Brice Waegeneire <=
- bug#39579: Done: Include operating systems list in virt-manager, Jakub Kądziołka, 2020/02/19