2023-01-20 10:41:00 +00:00
|
|
|
# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
|
2020-12-25 13:55:36 +00:00
|
|
|
{ lib, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "2.13";
|
2020-12-25 13:55:36 +00:00
|
|
|
in
|
2023-01-20 10:41:00 +00:00
|
|
|
(fetchzip {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "stix-two-${version}";
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
url = "https://github.com/stipub/stixfonts/raw/v${version}/zipfiles/STIX${builtins.replaceStrings [ "." ] [ "_" ] version}-all.zip";
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "sha256-cBtZe/oq4bQCscSAhJ4YuTSghDleD9O/+3MHOJyI50o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.stixfonts.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fonts for Scientific and Technical Information eXchange";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
}).overrideAttrs (_: {
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts/
|
|
|
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
|
|
|
'';
|
|
|
|
})
|