1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/misc/unicode/default.nix

32 lines
873 B
Nix

{ stdenv, fetchFromGitHub, fetchurl, python3Packages }:
python3Packages.buildPythonApplication rec {
name = "unicode-${version}";
version = "2.6";
src = fetchFromGitHub {
owner = "garabik";
repo = "unicode";
rev = "v${version}";
sha256 = "17hh4nwl5njsh7lnff583j2axn6rfvfbiqwp72n7vcsgkiszw4kg";
};
ucdtxt = fetchurl {
url = http://www.unicode.org/Public/10.0.0/ucd/UnicodeData.txt;
sha256 = "1cfak1j753zcrbgixwgppyxhm4w8vda8vxhqymi7n5ljfi6kwhjj";
};
postFixup = ''
substituteInPlace "$out/bin/.unicode-wrapped" \
--replace "/usr/share/unicode/UnicodeData.txt" "$ucdtxt"
'';
meta = with stdenv.lib; {
description = "Display unicode character properties";
homepage = https://github.com/garabik/unicode;
license = licenses.gpl3;
maintainers = [ maintainers.woffs ];
platforms = platforms.all;
};
}