3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/comic-neue/default.nix

40 lines
1.6 KiB
Nix
Raw Normal View History

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