nixpkgs/pkgs/by-name/co/comic-neue/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.6 KiB
Nix
Raw Normal View History

{
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
meta = with lib; {
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
};
}