diff options
author | Robert Helgesson <robert@rycee.net> | 2017-02-20 23:55:08 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2017-02-20 23:55:55 +0100 |
commit | b87be6e8ec10b794ffe038d34985544c8a87027b (patch) | |
tree | 85aaeefec63d2aec3096d0a4b818c8f381d7a95d /pkgs/data/fonts/stix-two | |
parent | 2f8aaf0c0a8cd0998ad51c7ca99f4510941b1e37 (diff) |
stix-two: init at 2.0.0
Diffstat (limited to 'pkgs/data/fonts/stix-two')
-rw-r--r-- | pkgs/data/fonts/stix-two/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/data/fonts/stix-two/default.nix b/pkgs/data/fonts/stix-two/default.nix new file mode 100644 index 0000000000000..d4ec083a07083 --- /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 ]; + }; +} |