Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchurl 4, osinfo-db-tools 5, gettext 6, libxml2 7}: 8 9stdenv.mkDerivation rec { 10 pname = "osinfo-db"; 11 version = "20230308"; 12 13 src = fetchurl { 14 url = "https://releases.pagure.org/libosinfo/${pname}-${version}.tar.xz"; 15 sha256 = "sha256-VGugTsxekzui1/PztDM6KYDUrk38UoSYm5xUdY8rkIg="; 16 }; 17 18 nativeBuildInputs = [ 19 osinfo-db-tools 20 gettext 21 libxml2 22 ]; 23 24 installPhase = '' 25 osinfo-db-import --dir "$out/share/osinfo" "${src}" 26 ''; 27 28 meta = with lib; { 29 description = "Osinfo database of information about operating systems for virtualization provisioning tools"; 30 homepage = "https://gitlab.com/libosinfo/osinfo-db/"; 31 changelog = "https://gitlab.com/libosinfo/osinfo-db/-/commits/v${version}"; 32 license = licenses.gpl2Plus; 33 platforms = platforms.unix; 34 maintainers = [ maintainers.bjornfor ]; 35 }; 36}