nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 29 lines 794 B view raw
1{ lib, stdenvNoCC, fetchzip }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "stix-two"; 5 version = "2.13"; 6 7 src = fetchzip { 8 url = "https://github.com/stipub/stixfonts/raw/v${version}/zipfiles/STIX${builtins.replaceStrings [ "." ] [ "_" ] version}-all.zip"; 9 stripRoot = false; 10 hash = "sha256-hfQmrw7HjlhQSA0rVTs84i3j3iMVR0k7tCRBcB6hEpU="; 11 }; 12 13 installPhase = '' 14 runHook preInstall 15 16 install -Dm644 */*.otf -t $out/share/fonts/opentype 17 install -Dm644 */*.ttf -t $out/share/fonts/truetype 18 19 runHook postInstall 20 ''; 21 22 meta = with lib; { 23 homepage = "https://www.stixfonts.org/"; 24 description = "Fonts for Scientific and Technical Information eXchange"; 25 license = licenses.ofl; 26 platforms = platforms.all; 27 maintainers = [ maintainers.rycee ]; 28 }; 29}