diff options
Diffstat (limited to 'nixpkgs/pkgs/data/fonts/stix-otf/default.nix')
-rw-r--r-- | nixpkgs/pkgs/data/fonts/stix-otf/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/data/fonts/stix-otf/default.nix b/nixpkgs/pkgs/data/fonts/stix-otf/default.nix new file mode 100644 index 000000000000..1ae85da3f7f3 --- /dev/null +++ b/nixpkgs/pkgs/data/fonts/stix-otf/default.nix @@ -0,0 +1,24 @@ +{stdenv, fetchzip}: + +let + version = "1.1.1"; +in fetchzip rec { + name = "stix-otf-${version}"; + + url = "mirror://sourceforge/stixfonts/STIXv${version}-word.zip"; + + postFetch = '' + mkdir -p $out/share/fonts + unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype + ''; + + sha256 = "04d4qxq3i9fyapsmxk6d9v1xirjam8c74fyxs6n24d3gf2945zmw"; + + 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]; + }; +} |