mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
c9eb44eab3
* make font derivations fixed-output where applicable * fix dead links * `stdenv.lib` -> `lib` where `stdenv` is not involved * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
25 lines
614 B
Nix
25 lines
614 B
Nix
{ stdenv, fetchzip }:
|
|
|
|
let
|
|
version = "2.0.0";
|
|
in fetchzip {
|
|
name = "stix-two-${version}";
|
|
|
|
url = "https://github.com/stipub/stixfonts/archive/${version}.zip";
|
|
|
|
postFetch = ''
|
|
mkdir -p $out/share/fonts
|
|
unzip -j $downloadedFile '*/OTF/*.otf' -d $out/share/fonts/opentype
|
|
'';
|
|
|
|
sha256 = "19i30d2xjk52bjj7xva1hnlyh58yd5phas1njcc8ldcz87a1lhql";
|
|
|
|
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 ];
|
|
};
|
|
}
|