b6d97fd731
GitOrigin-RevId: be0b453d7c7eee2090962c9a83749b024ff9acf5
27 lines
796 B
Nix
27 lines
796 B
Nix
{ stdenv, fetchurl, osinfo-db-tools, gettext, libxml2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "osinfo-db";
|
|
version = "20201119";
|
|
|
|
src = fetchurl {
|
|
url = "https://releases.pagure.org/libosinfo/${pname}-${version}.tar.xz";
|
|
sha256 = "1a0c42rh3anl3wy4hpg36s8k37y8zxpi5lc67wjwnj4j6mwi7w3l";
|
|
};
|
|
|
|
nativeBuildInputs = [ osinfo-db-tools gettext libxml2 ];
|
|
|
|
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";
|
|
homepage = "https://gitlab.com/libosinfo/osinfo-db/";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|