2015-06-11 23:17:53 +01:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
2010-11-24 11:51:50 +00:00
|
|
|
|
2015-06-11 23:17:53 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "anonymousPro-${version}";
|
|
|
|
version = "1.002";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.marksimonson.com/assets/content/fonts/AnonymousPro-${version}.zip";
|
2014-07-01 09:20:04 +01:00
|
|
|
sha256 = "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6";
|
2010-11-24 11:51:50 +00:00
|
|
|
};
|
|
|
|
|
2015-06-11 23:17:53 +01:00
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
2010-11-24 11:51:50 +00:00
|
|
|
|
2015-06-11 23:17:53 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
mkdir -p $out/share/doc/${name}
|
|
|
|
find . -name "*.ttf" -exec cp -v {} $out/share/fonts/truetype \;
|
|
|
|
find . -name "*.txt" -exec cp -v {} $out/share/doc/${name} \;
|
|
|
|
'';
|
2010-11-24 11:51:50 +00:00
|
|
|
|
2015-06-11 23:17:53 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.marksimonson.com/fonts/view/anonymous-pro;
|
2013-10-05 15:22:46 +01:00
|
|
|
description = "TrueType font set intended for source code";
|
2015-06-11 23:17:53 +01:00
|
|
|
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;
|
2010-11-24 11:51:50 +00:00
|
|
|
};
|
2015-06-11 23:17:53 +01:00
|
|
|
}
|