2020-08-15 14:11:28 +02:00
|
|
|
{ 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";
|
2020-12-09 20:24:27 +01:00
|
|
|
version = "20201119";
|
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";
|
2020-12-09 20:24:27 +01:00
|
|
|
sha256 = "1a0c42rh3anl3wy4hpg36s8k37y8zxpi5lc67wjwnj4j6mwi7w3l";
|
2017-12-19 06:59:33 +01:00
|
|
|
};
|
|
|
|
|
2020-08-15 14:11:28 +02:00
|
|
|
nativeBuildInputs = [ osinfo-db-tools gettext libxml2 ];
|
2017-12-19 06:59:33 +01:00
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
osinfo-db-import --dir "$out/share/osinfo" "${src}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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/";
|
2017-12-19 06:59:33 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|