2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, osinfo-db-tools
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "osinfo-db";
|
2023-03-30 22:05:00 +00:00
|
|
|
version = "20230308";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://releases.pagure.org/libosinfo/${pname}-${version}.tar.xz";
|
2023-03-30 22:05:00 +00:00
|
|
|
sha256 = "sha256-VGugTsxekzui1/PztDM6KYDUrk38UoSYm5xUdY8rkIg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
osinfo-db-tools
|
|
|
|
gettext
|
|
|
|
libxml2
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
osinfo-db-import --dir "$out/share/osinfo" "${src}"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Osinfo database of information about operating systems for virtualization provisioning tools";
|
|
|
|
homepage = "https://gitlab.com/libosinfo/osinfo-db/";
|
2022-03-05 16:20:37 +00:00
|
|
|
changelog = "https://gitlab.com/libosinfo/osinfo-db/-/commits/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2022-08-12 12:06:08 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|