1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
{ stdenv
, fetchurl
, fetchpatch
, pkgconfig
, meson
, ninja
, gettext
, gobject-introspection
, gtk-doc
, docbook_xsl
, glib
, libsoup
, libxml2
, libxslt
, check
, curl
, perl
, hwdata
, osinfo-db
, substituteAll
, vala ? null
}:
stdenv.mkDerivation rec {
pname = "libosinfo";
version = "1.7.1";
src = fetchurl {
url = "https://releases.pagure.org/${pname}/${pname}-${version}.tar.xz";
sha256 = "1s97sv24bybggjx6hgqba2qdqz3ivfpd4cmkh4zm5y59sim109mv";
};
outputs = [ "out" "dev" "devdoc" ];
nativeBuildInputs = [
pkgconfig
meson
ninja
vala
gettext
gobject-introspection
gtk-doc
docbook_xsl
perl # for pod2man
];
buildInputs = [
glib
libsoup
libxml2
libxslt
];
checkInputs = [
check
curl
perl
];
patches = [
(substituteAll {
src = ./osinfo-db-data-dir.patch;
osinfo_db_data_dir = "${osinfo-db}/share";
})
];
mesonFlags = [
"-Dwith-usb-ids-path=${hwdata}/share/hwdata/usb.ids"
"-Dwith-pci-ids-path=${hwdata}/share/hwdata/pci.ids"
"-Denable-gtk-doc=true"
];
# FIXME: fails two new tests added in 1.7.1:
# libosinfo:symbols / check-symfile
# 3/24 libosinfo:symbols / check-symsorting
doCheck = false;
meta = with stdenv.lib; {
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 ];
};
}
|