From 43634d47e415eb51a77ec861fd678fa62e1902cb Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Wed, 11 May 2016 06:26:05 +0300 Subject: [PATCH] xits-math: init at 1.108 --- pkgs/data/fonts/xits-math/default.nix | 28 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/data/fonts/xits-math/default.nix diff --git a/pkgs/data/fonts/xits-math/default.nix b/pkgs/data/fonts/xits-math/default.nix new file mode 100644 index 00000000000..773aa74ce39 --- /dev/null +++ b/pkgs/data/fonts/xits-math/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "xits-math-${version}"; + version = "1.108"; + + src = fetchFromGitHub { + owner = "khaledhosny"; + repo = "xits-math"; + rev = "v${version}"; + sha256 = "08nn676c41a7gmmhrzi8mm0g74z8aiaafjk48pqcwxvjj9av7xjg"; + }; + + phases = [ "unpackPhase" "installPhase" ]; + + installPhase = '' + mkdir -p $out/share/fonts/opentype + cp *.otf $out/share/fonts/opentype + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/khaledhosny/xits-math; + description = "OpenType implementation of STIX fonts with math support"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = with maintainers; [ abbradar ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b5e6bc31e6a..43bc889db09 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11676,6 +11676,8 @@ in xhtml1 = callPackage ../data/sgml+xml/schemas/xml-dtd/xhtml1 { }; + xits-math = callPackage ../data/fonts/xits-math { }; + xkeyboard_config = xorg.xkeyboardconfig; xlsx2csv = pythonPackages.xlsx2csv;