depot/third_party/nixpkgs/pkgs/tools/misc/unicode/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
867 B
Nix

{ stdenv, fetchFromGitHub, fetchurl, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "unicode";
version = "2.6";
src = fetchFromGitHub {
owner = "garabik";
repo = "unicode";
rev = "v${version}";
sha256 = "17hh4nwl5njsh7lnff583j2axn6rfvfbiqwp72n7vcsgkiszw4kg";
};
ucdtxt = fetchurl {
url = "http://www.unicode.org/Public/11.0.0/ucd/UnicodeData.txt";
sha256 = "16b0jzvvzarnlxdvs2izd5ia0ipbd87md143dc6lv6xpdqcs75s9";
};
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;
};
}