nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "stix-otf";
5 version = "1.1.1";
6
7 src = fetchzip {
8 url = "https://sources.debian.org/src/fonts-stix/1.1.1-4.1/STIXv${version}-word.zip";
9 stripRoot = false;
10 hash = "sha256-M3STue+RPHi8JgZZupV0dVLZYKBiFutbBOlanuKkD08=";
11 };
12
13 installPhase = ''
14 runHook preInstall
15
16 install -Dm644 Fonts/STIX-Word/*.otf -t $out/share/fonts/opentype
17
18 runHook postInstall
19 '';
20
21 meta = with lib; {
22 homepage = "http://www.stixfonts.org/";
23 description = "Fonts for Scientific and Technical Information eXchange";
24 license = licenses.ofl;
25 platforms = platforms.all;
26 maintainers = [ maintainers.rycee ];
27 };
28}