36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
|
{ lib, stdenvNoCC, fetchzip }:
|
||
|
|
||
|
stdenvNoCC.mkDerivation rec {
|
||
|
pname = "anonymouspro";
|
||
|
version = "1.002";
|
||
|
|
||
|
src = fetchzip {
|
||
|
url = "https://www.marksimonson.com/assets/content/fonts/AnonymousPro-${lib.replaceStrings ["."] ["_"] version}.zip";
|
||
|
hash = "sha256-FhyzV4By8XKN9EyukAknzml/7lUuV6Evnt6Ht3H6TUU=";
|
||
|
};
|
||
|
|
||
|
installPhase = ''
|
||
|
runHook preInstall
|
||
|
|
||
|
install -Dm644 *.ttf -t $out/share/fonts/truetype
|
||
|
install -Dm644 *.txt -t $out/share/doc/${pname}-${version}
|
||
|
|
||
|
runHook postInstall
|
||
|
'';
|
||
|
|
||
|
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 ];
|
||
|
license = licenses.ofl;
|
||
|
platforms = platforms.all;
|
||
|
};
|
||
|
}
|