diff --git a/pkgs/data/fonts/stix-two/default.nix b/pkgs/data/fonts/stix-two/default.nix new file mode 100644 index 00000000000..d4ec083a070 --- /dev/null +++ b/pkgs/data/fonts/stix-two/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + name = "stix-two-${version}"; + version = "2.0.0"; + + src = fetchurl { + url = "mirror://sourceforge/stixfonts/Current%20Release/STIXv${version}.zip"; + sha256 = "0f6rcg0p2dhnks523nywgkjk56bjajz3gnwsrap932674xxjkb3g"; + }; + + buildInputs = [ unzip ]; + + phases = [ "unpackPhase" "installPhase" ]; + + installPhase = '' + mkdir -p $out/share/fonts/opentype + cp -v "Fonts/OTF/"*.otf $out/share/fonts/opentype + ''; + + meta = with stdenv.lib; { + homepage = http://www.stixfonts.org/; + description = "Fonts for Scientific and Technical Information eXchange"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = [ maintainers.rycee ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 89d7aa826c6..aec433ae54f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12335,6 +12335,8 @@ with pkgs; stix-otf = callPackage ../data/fonts/stix-otf { }; + stix-two = callPackage ../data/fonts/stix-two { }; + inherit (callPackages ../data/fonts/gdouros { }) symbola aegyptus akkadian anatolian maya unidings musica analecta;