mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
Add package for the STIX fonts.
This commit is contained in:
parent
9241dd5671
commit
e68d97aa43
30
pkgs/data/fonts/stix-otf/default.nix
Normal file
30
pkgs/data/fonts/stix-otf/default.nix
Normal file
|
@ -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];
|
||||
};
|
||||
}
|
|
@ -8265,6 +8265,8 @@ let
|
|||
|
||||
stdmanpages = callPackage ../data/documentation/std-man-pages { };
|
||||
|
||||
stix-otf = callPackage ../data/fonts/stix-otf { };
|
||||
|
||||
symbola = callPackage ../data/fonts/symbola { };
|
||||
|
||||
iana_etc = callPackage ../data/misc/iana-etc { };
|
||||
|
|
Loading…
Reference in a new issue