nixpkgs/pkgs/data/misc/osinfo-db/default.nix

28 lines
793 B
Nix
Raw Normal View History

{ 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";
2021-02-20 00:24:32 +00:00
version = "20210215";
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";
2021-02-20 00:24:32 +00:00
sha256 = "sha256-HIM3sq47+0nImiaw+CjjjgYnBIorwmA6UxaNefjYNZg=";
2017-12-19 05:59:33 +00:00
};
2020-08-15 12:11:28 +00:00
nativeBuildInputs = [ osinfo-db-tools gettext libxml2 ];
2017-12-19 05:59:33 +00:00
phases = [ "installPhase" ];
installPhase = ''
osinfo-db-import --dir "$out/share/osinfo" "${src}"
'';
meta = with lib; {
2017-12-19 05:59:33 +00:00
description = "Osinfo database of information about operating systems for virtualization provisioning tools";
homepage = "https://gitlab.com/libosinfo/osinfo-db/";
2017-12-19 05:59:33 +00:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}