nixpkgs/pkgs/data/misc/unihan-database/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
691 B
Nix
Raw Normal View History

{ lib, stdenv
2019-11-07 17:07:55 +00:00
, fetchurl
, unzip
}:
stdenv.mkDerivation rec {
pname = "unihan-database";
2022-09-14 20:50:19 +00:00
version = "15.0.0";
2019-11-07 17:07:55 +00:00
src = fetchurl {
url = "https://www.unicode.org/Public/zipped/${version}/Unihan.zip";
2022-09-14 20:50:19 +00:00
hash = "sha256-JLFUaR/JfLRCZ7kl1iBkKXCGs/iWtXqBgce21CcCoCY=";
2019-11-07 17:07:55 +00:00
};
nativeBuildInputs = [
unzip
];
setSourceRoot = ''
sourceRoot=$PWD
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/unicode
cp -r * $out/share/unicode
runHook postInstall
'';
meta = with lib; {
2019-11-07 17:07:55 +00:00
description = "Unicode Han Database";
homepage = "https://www.unicode.org/";
license = licenses.unicode-dfs-2016;
2019-11-07 17:07:55 +00:00
platforms = platforms.all;
};
}