Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
867 B
Nix
38 lines
867 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
osinfo-db-tools,
|
|
gettext,
|
|
libxml2,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "osinfo-db";
|
|
version = "20250606";
|
|
|
|
src = fetchurl {
|
|
url = "https://releases.pagure.org/libosinfo/${pname}-${version}.tar.xz";
|
|
hash = "sha256-mUCqR98pgHPFHc+KTcyFX0lKuGTCTNvaRr2JeVc1f+E=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
osinfo-db-tools
|
|
gettext
|
|
libxml2
|
|
];
|
|
|
|
installPhase = ''
|
|
osinfo-db-import --dir "$out/share/osinfo" "${src}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Osinfo database of information about operating systems for virtualization provisioning tools";
|
|
homepage = "https://gitlab.com/libosinfo/osinfo-db/";
|
|
changelog = "https://gitlab.com/libosinfo/osinfo-db/-/commits/v${version}";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = [ lib.maintainers.bjornfor ];
|
|
};
|
|
}
|