10 gobject-introspection,
26 stdenv.mkDerivation rec {
31 url = "https://releases.pagure.org/${pname}/${pname}-${version}.tar.xz";
32 sha256 = "sha256-G/lu7J4UYPPRpxMWPMof8NSAo0kLUImSkvFFSLOpa2A=";
38 ] ++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) "devdoc";
65 src = ./osinfo-db-data-dir.patch;
66 osinfo_db_data_dir = "${osinfo-db}/share";
69 # Fix build with libxml 2.12
71 url = "https://gitlab.com/libosinfo/libosinfo/-/commit/5bbdd06503456784c5ffa22409e8bab50470d673.patch";
72 hash = "sha256-KqgHXI+lD5VYp2wtA58Drp15TgNK1O3xCaYBy4/B9wc=";
77 "-Dwith-usb-ids-path=${hwdata}/share/hwdata/usb.ids"
78 "-Dwith-pci-ids-path=${hwdata}/share/hwdata/pci.ids"
79 "-Denable-gtk-doc=true"
83 patchShebangs ../osinfo/check-symfile.pl ../osinfo/check-symsorting.pl
89 description = "GObject based library API for managing information about operating systems, hypervisors and the (virtual) hardware devices they can support";
90 homepage = "https://libosinfo.org/";
91 changelog = "https://gitlab.com/libosinfo/libosinfo/-/blob/v${version}/NEWS";
92 license = licenses.lgpl2Plus;
93 platforms = platforms.unix;
94 maintainers = [ maintainers.bjornfor ];