libosinfo: 0.2.12 → 1.1.0
This commit is contained in:
parent
7f18bbb642
commit
eed3354a4b
@ -1,23 +1,43 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, intltool, gobjectIntrospection, libsoup
|
{ stdenv, fetchurl, pkgconfig, intltool, gobjectIntrospection, gtk_doc, docbook_xsl
|
||||||
, libxslt, check, vala_0_23 ? null
|
, glib, libsoup, libxml2, libxslt, check, curl, perl, hwdata, osinfo-db, vala ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libosinfo-0.2.12";
|
name = "libosinfo-1.1.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://fedorahosted.org/releases/l/i/libosinfo/${name}.tar.gz";
|
url = "https://releases.pagure.org/libosinfo/${name}.tar.gz";
|
||||||
sha256 = "1vcg8ylh7q69s9y6hj94dqfffwfbann3i28yqgfc01navf6yl07s";
|
sha256 = "0diigllgni6m0sc2h8aid6hmyaq9qb54pm5305m0irfsm2j463v0";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
outputs = [ "out" "dev" "devdoc" ];
|
||||||
buildInputs = [
|
|
||||||
intltool gobjectIntrospection libsoup libxslt check vala_0_23
|
nativeBuildInputs = [
|
||||||
|
pkgconfig vala intltool gobjectIntrospection gtk_doc docbook_xsl
|
||||||
|
] ++ stdenv.lib.optionals doCheck checkInputs;
|
||||||
|
checkInputs = [ check curl perl ];
|
||||||
|
buildInputs = [ glib libsoup libxml2 libxslt ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./osinfo-db-data-dir.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs .
|
||||||
|
substituteInPlace osinfo/osinfo_loader.c --subst-var-by OSINFO_DB_DATA_DIR "${osinfo-db}/share"
|
||||||
|
'';
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--with-usb-ids-path=${hwdata}/data/hwdata/usb.ids"
|
||||||
|
"--with-pci-ids-path=${hwdata}/data/hwdata/pci.ids"
|
||||||
|
"--enable-gtk-doc"
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Info about OSs, hypervisors and (virtual) hardware devices";
|
description = "GObject based library API for managing information about operating systems, hypervisors and the (virtual) hardware devices they can support";
|
||||||
homepage = http://libosinfo.org/;
|
homepage = https://libosinfo.org/;
|
||||||
license = licenses.lgpl2Plus;
|
license = licenses.lgpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [ maintainers.bjornfor ];
|
maintainers = [ maintainers.bjornfor ];
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
--- a/osinfo/osinfo_loader.c
|
||||||
|
+++ b/osinfo/osinfo_loader.c
|
||||||
|
@@ -2304,7 +2304,7 @@
|
||||||
|
} else {
|
||||||
|
path = g_getenv("OSINFO_SYSTEM_DIR");
|
||||||
|
if (!path)
|
||||||
|
- path = DATA_DIR "/osinfo";
|
||||||
|
+ path = "@OSINFO_DB_DATA_DIR@/osinfo";
|
||||||
|
|
||||||
|
file = g_file_new_for_path(path);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user