2021-01-11 07:54:33 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchzip,
|
|
|
|
}:
|
2014-08-19 13:03:21 +00:00
|
|
|
|
2020-09-14 04:25:40 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "comic-neue";
|
2020-10-10 04:57:12 +00:00
|
|
|
version = "2.51";
|
2014-08-19 13:03:21 +00:00
|
|
|
|
2020-09-14 04:25:40 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "http://comicneue.com/${pname}-${version}.zip";
|
2020-10-10 04:57:12 +00:00
|
|
|
sha256 = "sha256-DjRZtFnJOtZnxhfpgU5ihZFAonRK608/BQztCAExIU0=";
|
2020-09-14 04:25:40 +00:00
|
|
|
stripRoot = false; # because it comes with a __MACOSX directory
|
|
|
|
};
|
2014-08-19 13:03:21 +00:00
|
|
|
|
2020-09-14 04:25:40 +00:00
|
|
|
installPhase = ''
|
2020-10-10 04:57:12 +00:00
|
|
|
mkdir -pv $out/share/{doc/${pname}-${version},fonts/{opentype,truetype,WOFF,WOFF2}}
|
2020-09-14 04:25:40 +00:00
|
|
|
cp -v ${pname}-${version}/{FONTLOG,OFL-FAQ,OFL}.txt $out/share/doc/
|
2020-10-10 04:57:12 +00:00
|
|
|
cp -v ${pname}-${version}/Booklet-ComicNeue.pdf $out/share/doc/
|
2020-09-14 04:25:40 +00:00
|
|
|
cp -v ${pname}-${version}/OTF/ComicNeue-Angular/*.otf $out/share/fonts/opentype
|
|
|
|
cp -v ${pname}-${version}/OTF/ComicNeue/*.otf $out/share/fonts/opentype
|
|
|
|
cp -v ${pname}-${version}/TTF/ComicNeue-Angular/*.ttf $out/share/fonts/truetype
|
|
|
|
cp -v ${pname}-${version}/TTF/ComicNeue/*.ttf $out/share/fonts/truetype
|
2020-10-10 04:57:12 +00:00
|
|
|
cp -v ${pname}-${version}/WebFonts/*.woff $out/share/fonts/WOFF
|
|
|
|
cp -v ${pname}-${version}/WebFonts/*.woff2 $out/share/fonts/WOFF2
|
2020-09-14 04:25:40 +00:00
|
|
|
'';
|
2017-08-10 19:43:49 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://comicneue.com/";
|
2014-08-19 13:03:21 +00:00
|
|
|
description = "Casual type face: Make your lemonade stand look like a fortune 500 company";
|
|
|
|
longDescription = ''
|
2020-09-14 04:25:40 +00:00
|
|
|
ComicNeue is inspired by Comic Sans but more regular. It 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,
|
2014-08-19 13:03:21 +00:00
|
|
|
Regular, and Bold weights with Oblique variants.
|
|
|
|
'';
|
2015-04-20 06:32:12 +00:00
|
|
|
license = licenses.ofl;
|
2014-08-19 13:03:21 +00:00
|
|
|
platforms = platforms.all;
|
2015-04-20 06:32:12 +00:00
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
2014-08-19 13:03:21 +00:00
|
|
|
};
|
|
|
|
}
|