mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 05:37:27 +03:00
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
|
||||
, libxslt, check, vala_0_23 ? null
|
||||
{ stdenv, fetchurl, pkgconfig, intltool, gobjectIntrospection, gtk_doc, docbook_xsl
|
||||
, glib, libsoup, libxml2, libxslt, check, curl, perl, hwdata, osinfo-db, vala ? null
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libosinfo-0.2.12";
|
||||
name = "libosinfo-1.1.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://fedorahosted.org/releases/l/i/libosinfo/${name}.tar.gz";
|
||||
sha256 = "1vcg8ylh7q69s9y6hj94dqfffwfbann3i28yqgfc01navf6yl07s";
|
||||
url = "https://releases.pagure.org/libosinfo/${name}.tar.gz";
|
||||
sha256 = "0diigllgni6m0sc2h8aid6hmyaq9qb54pm5305m0irfsm2j463v0";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [
|
||||
intltool gobjectIntrospection libsoup libxslt check vala_0_23
|
||||
outputs = [ "out" "dev" "devdoc" ];
|
||||
|
||||
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; {
|
||||
description = "Info about OSs, hypervisors and (virtual) hardware devices";
|
||||
homepage = http://libosinfo.org/;
|
||||
description = "GObject based library API for managing information about operating systems, hypervisors and the (virtual) hardware devices they can support";
|
||||
homepage = https://libosinfo.org/;
|
||||
license = licenses.lgpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
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…
Reference in New Issue
Block a user