2022-02-23 19:27:16 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, osinfo-db-tools
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
}:
|
2017-12-19 05:59:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-01 21:19:36 +00:00
|
|
|
pname = "osinfo-db";
|
2022-12-30 23:16:59 +00:00
|
|
|
version = "20221130";
|
2017-12-19 05:59:33 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-01 21:19:36 +00:00
|
|
|
url = "https://releases.pagure.org/libosinfo/${pname}-${version}.tar.xz";
|
2022-12-30 23:16:59 +00:00
|
|
|
sha256 = "sha256-opVMrXob7yZ5lJmHxjiI8eCBsJ4R+3JQVDcvA37HcX8=";
|
2017-12-19 05:59:33 +00:00
|
|
|
};
|
|
|
|
|
2022-02-23 19:27:16 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
osinfo-db-tools
|
|
|
|
gettext
|
|
|
|
libxml2
|
|
|
|
];
|
2017-12-19 05:59:33 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
osinfo-db-import --dir "$out/share/osinfo" "${src}"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-12-19 05:59:33 +00:00
|
|
|
description = "Osinfo database of information about operating systems for virtualization provisioning tools";
|
2020-03-19 00:33:45 +00:00
|
|
|
homepage = "https://gitlab.com/libosinfo/osinfo-db/";
|
2022-02-23 19:27:16 +00:00
|
|
|
changelog = "https://gitlab.com/libosinfo/osinfo-db/-/commits/v${version}";
|
2017-12-19 05:59:33 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2022-07-28 14:24:15 +00:00
|
|
|
platforms = platforms.unix;
|
2017-12-19 05:59:33 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|