mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +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
31 lines
1.1 KiB
Nix
31 lines
1.1 KiB
Nix
{ lib, fetchzip }:
|
|
|
|
let
|
|
version = "1.002";
|
|
in fetchzip rec {
|
|
name = "anonymousPro-${version}";
|
|
|
|
url = "http://www.marksimonson.com/assets/content/fonts/AnonymousPro-${version}.zip";
|
|
postFetch = ''
|
|
mkdir -p $out/share/{doc,fonts}
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
|
unzip -j $downloadedFile \*.txt -d "$out/share/doc/${name}"
|
|
'';
|
|
sha256 = "05rgzag38qc77b31sm5i2vwwrxbrvwzfsqh3slv11skx36pz337f";
|
|
|
|
meta = with lib; {
|
|
homepage = https://www.marksimonson.com/fonts/view/anonymous-pro;
|
|
description = "TrueType font set intended for source code";
|
|
longDescription = ''
|
|
Anonymous Pro (2009) is a family of four fixed-width fonts
|
|
designed with coding in mind. Anonymous Pro features an
|
|
international, Unicode-based character set, with support for
|
|
most Western and Central European Latin-based languages, plus
|
|
Greek and Cyrillic. It is designed by Mark Simonson.
|
|
'';
|
|
maintainers = with maintainers; [ raskin rycee ];
|
|
license = licenses.ofl;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|