unicode-idna: init at 16.0.0

This commit is contained in:
jopejoe1
2025-03-26 20:19:44 +01:00
committed by Francesco Gazzetta
parent 015d924d34
commit ee467ba361

View File

@@ -0,0 +1,34 @@
{
lib,
stdenvNoCC,
fetchurl,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "unicode-idna";
version = "16.0.0";
src = fetchurl {
url = "https://www.unicode.org/Public/idna/${finalAttrs.version}/IdnaMappingTable.txt";
hash = "sha256-bbLvTtNfOz3nTrwuAEBKlgf3bUmfV2uNQEPPFPHtF1w=";
};
dontUnpack = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/unicode/idna
cp -r $src $out/share/unicode/idna/IdnaMappingTable.txt
runHook postInstall
'';
meta = {
description = "unicode IDNA compatible processing data";
homepage = "http://www.unicode.org/reports/tr46/";
license = lib.licenses.unicode-dfs-2016;
maintainers = with lib.maintainers; [ jopejoe1 ];
platforms = lib.platforms.all;
};
})