2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "comic-neue";
|
2020-10-16 20:44:37 +00:00
|
|
|
version = "2.51";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "http://comicneue.com/${pname}-${version}.zip";
|
2020-10-16 20:44:37 +00:00
|
|
|
sha256 = "sha256-DjRZtFnJOtZnxhfpgU5ihZFAonRK608/BQztCAExIU0=";
|
2020-09-25 04:45:31 +00:00
|
|
|
stripRoot = false; # because it comes with a __MACOSX directory
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
installPhase = ''
|
2020-10-16 20:44:37 +00:00
|
|
|
mkdir -pv $out/share/{doc/${pname}-${version},fonts/{opentype,truetype,WOFF,WOFF2}}
|
2020-09-25 04:45:31 +00:00
|
|
|
cp -v ${pname}-${version}/{FONTLOG,OFL-FAQ,OFL}.txt $out/share/doc/
|
2020-10-16 20:44:37 +00:00
|
|
|
cp -v ${pname}-${version}/Booklet-ComicNeue.pdf $out/share/doc/
|
2020-09-25 04:45:31 +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-16 20:44:37 +00:00
|
|
|
cp -v ${pname}-${version}/WebFonts/*.woff $out/share/fonts/WOFF
|
|
|
|
cp -v ${pname}-${version}/WebFonts/*.woff2 $out/share/fonts/WOFF2
|
2020-09-25 04:45:31 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://comicneue.com/";
|
|
|
|
description = "A casual type face: Make your lemonade stand look like a fortune 500 company";
|
|
|
|
longDescription = ''
|
2020-09-25 04:45:31 +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,
|
2020-04-24 23:36:52 +00:00
|
|
|
Regular, and Bold weights with Oblique variants.
|
|
|
|
'';
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|