diff options
author | Robert Helgesson <robert@rycee.net> | 2014-09-11 20:05:01 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2014-09-13 12:07:13 +0200 |
commit | e68d97aa43e0fd3a6643ec1ba339ff6570aeeb1b (patch) | |
tree | 818ad4080a5789140805738824b111435658789c /pkgs/data/fonts/stix-otf | |
parent | 9241dd5671d466c8489378f51ece8f4a7620a2c6 (diff) | |
download | nixlib-e68d97aa43e0fd3a6643ec1ba339ff6570aeeb1b.tar nixlib-e68d97aa43e0fd3a6643ec1ba339ff6570aeeb1b.tar.gz nixlib-e68d97aa43e0fd3a6643ec1ba339ff6570aeeb1b.tar.bz2 nixlib-e68d97aa43e0fd3a6643ec1ba339ff6570aeeb1b.tar.lz nixlib-e68d97aa43e0fd3a6643ec1ba339ff6570aeeb1b.tar.xz nixlib-e68d97aa43e0fd3a6643ec1ba339ff6570aeeb1b.tar.zst nixlib-e68d97aa43e0fd3a6643ec1ba339ff6570aeeb1b.zip |
Add package for the STIX fonts.
Diffstat (limited to 'pkgs/data/fonts/stix-otf')
-rw-r--r-- | pkgs/data/fonts/stix-otf/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/data/fonts/stix-otf/default.nix b/pkgs/data/fonts/stix-otf/default.nix new file mode 100644 index 000000000000..f32d865c95c7 --- /dev/null +++ b/pkgs/data/fonts/stix-otf/default.nix @@ -0,0 +1,30 @@ +{stdenv, fetchurl, unzip}: + +stdenv.mkDerivation rec { + name = "stix-otf-${version}"; + version = "1.1.1"; + + src = fetchurl { + url = "mirror://sourceforge/stixfonts/STIXv${version}-word.zip"; + sha256 = "1q35wbqn3nh78pdban9z37lh090c6p49q3d00zzxm0axxz66xy4q"; + }; + + buildInputs = [unzip]; + + phases = ["unpackPhase" "installPhase"]; + + sourceRoot = "Fonts/STIX-Word"; + + installPhase = '' + mkdir -p $out/share/fonts/opentype + cp *.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]; + }; +} |