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