Hi,
i attached libosinfo patch required for GNOME Boxes.
Considerations:
a) In the source i used
"https://fedorahosted.org/releases/l/i/libosinfo" instead
"mirror://gnome/sources/".
b) In native inputs, i used "vala" instead "glib:bin"; i follow the
README.
Thanks.
From 073a183499bd764b0b0efc246748638c6e4d3aeb Mon Sep 17 00:00:00 2001
From: Rene Saavedra <ren...@openmailbox.org>
Date: Sat, 13 Feb 2016 16:23:10 -0600
Subject: [PATCH] gnu: Add libosinfo.
* gnu/packages/gnome.scm (libosinfo): New variable.
---
gnu/packages/gnome.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 49e6197..2d7ca89 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -93,6 +93,7 @@
#:use-module (gnu packages tls)
#:use-module (gnu packages web)
#:use-module (gnu packages webkit)
+ #:use-module (gnu packages wget)
#:use-module (gnu packages xorg)
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages freedesktop)
@@ -4648,3 +4649,37 @@ as SASL, TLS and VeNCrypt. Additionally it supports encoding extensions.")
design and behaviour, giving the user a simple way to navigate and manage its
files.")
(license license:gpl2+)))
+
+(define-public libosinfo
+ (package
+ (name "libosinfo")
+ (version "0.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://fedorahosted.org/releases/l/i/libosinfo/"
+ name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1g7g5hc4lhi4y0j3mbcj19hawlqkflni1zk4aggrx49fg5l392jk"))))
+ (build-system glib-or-gtk-build-system)
+ (native-inputs
+ `(("check" ,check)
+ ("intltool" ,intltool)
+ ("libsoup" ,libsoup)
+ ("pkg-config" ,pkg-config)
+ ("vala" ,vala)
+ ("wget" ,wget)))
+ (inputs
+ `(("libxslt" ,libxslt)))
+ (home-page "https://libosinfo.org")
+ (synopsis "Library for managing information about operating systems")
+ (description
+ "libosinfo is a GObject based library API for managing information about
+operating systems, hypervisors and the (virtual) hardware devices they can
+support. It includes a database containing device metadata and provides APIs
+to match/identify optimal devices for deploying an operating system on a
+hypervisor. Via the magic of GObject Introspection, the API is available in all
+common programming languages with demos for javascript (GJS/Seed) and python
+(PyGObject). Also provided are Vala bindings.")
+ (license license:lgpl2.1+)))
--
2.6.3