mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 03:39:59 +00:00
35 lines
768 B
Nix
35 lines
768 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "unicode-idna";
|
|
version = "17.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.unicode.org/Public/${finalAttrs.version}/idna/IdnaMappingTable.txt";
|
|
hash = "sha256-h/BVBdwCb9sr/xYTK9xoqAFGdYNogqmisYRFQK0744I=";
|
|
};
|
|
|
|
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-30;
|
|
maintainers = with lib.maintainers; [ jopejoe1 ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|