2015-04-20 09:32:12 +03:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, unzip }:
|
2014-08-19 17:03:21 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-20 09:32:12 +03:00
|
|
|
name = "comic-neue-${version}";
|
|
|
|
version = "2.2";
|
2014-08-19 17:03:21 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-04-20 09:32:12 +03:00
|
|
|
url = "http://comicneue.com/${name}.zip";
|
|
|
|
sha256 = "1dmmjhxxc0bj2755yksiiwh275vmnyciknr9b995lmdkjgh7sz6n";
|
2014-08-19 17:03:21 +04:00
|
|
|
};
|
|
|
|
|
2015-04-20 09:32:12 +03:00
|
|
|
buildInputs = [ unzip ];
|
2014-08-19 17:03:21 +04:00
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
sourceRoot = name;
|
|
|
|
|
|
|
|
installPhase = ''
|
2015-04-20 09:32:12 +03:00
|
|
|
mkdir -vp $out/share/fonts/truetype $out/share/fonts/opentype $out/share/fonts/EOT $out/share/fonts/WOFF $out/share/fonts/WOFF2 $out/share/doc/${name}
|
|
|
|
cp -v OTF/*.otf $out/share/fonts/opentype
|
|
|
|
cp -v Web/*.ttf $out/share/fonts/truetype
|
|
|
|
cp -v Web/*.eot $out/share/fonts/EOT
|
|
|
|
cp -v Web/*.woff $out/share/fonts/WOFF
|
|
|
|
cp -v Web/*.woff2 $out/share/fonts/WOFF2
|
|
|
|
cp -v Booklet-ComicNeue.pdf FONTLOG.txt OFL-FAQ.txt SIL-License.txt $out/share/doc/${name}
|
2014-08-19 17:03:21 +04:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://comicneue.com/;
|
|
|
|
description = "A casual type face: Make your lemonade stand look like a fortune 500 company";
|
|
|
|
longDescription = ''
|
|
|
|
It is inspired by Comic Sans but more regular. The font was
|
|
|
|
designed by Craig Rozynski. It is available in two variants:
|
|
|
|
Comic Neue and Comic Neue Angular. The former having round and
|
|
|
|
the latter angular terminals. Both variants come in Light,
|
|
|
|
Regular, and Bold weights with Oblique variants.
|
|
|
|
'';
|
2015-04-20 09:32:12 +03:00
|
|
|
license = licenses.ofl;
|
2014-08-19 17:03:21 +04:00
|
|
|
platforms = platforms.all;
|
2015-04-20 09:32:12 +03:00
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
2014-08-19 17:03:21 +04:00
|
|
|
};
|
|
|
|
}
|