depot/third_party/nixpkgs/pkgs/data/misc/unicode-character-database/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

36 lines
680 B
Nix

{ lib, stdenv
, fetchurl
, unzip
}:
stdenv.mkDerivation rec {
pname = "unicode-character-database";
version = "15.1.0";
src = fetchurl {
url = "https://www.unicode.org/Public/zipped/${version}/UCD.zip";
sha256 = "sha256-yxxmPQU5JlAM1QEilzYEV1JxOgZr11gCCYWYt6cFYXc=";
};
nativeBuildInputs = [
unzip
];
sourceRoot = ".";
installPhase = ''
runHook preInstall
mkdir -p $out/share/unicode
cp -r * $out/share/unicode
runHook postInstall
'';
meta = with lib; {
description = "Unicode Character Database";
homepage = "https://www.unicode.org/";
license = licenses.unicode-dfs-2016;
platforms = platforms.all;
};
}