mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 10:56:56 +00:00
45cb7c2c0e
The previous URL is broken.
50 lines
1.5 KiB
Nix
50 lines
1.5 KiB
Nix
{stdenv, fetchurl, unzip}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "comic-relief-${version}";
|
|
version = "1.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://fontlibrary.org/assets/downloads/comic-relief/45c456b6db2aaf2f7f69ac66b5ac7239/comic-relief.zip";
|
|
sha256 = "0wpf10m9zmcfvcxgc7dxzdm3syam7d7qxlfabgr1nxzq299kh8ch";
|
|
};
|
|
|
|
buildInputs = [unzip];
|
|
|
|
phases = ["unpackPhase" "installPhase"];
|
|
|
|
unpackCmd = ''
|
|
mkdir -p ${name}
|
|
unzip -qq -d ${name} $src
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/etc/fonts/conf.d
|
|
mkdir -p $out/share/doc/${name}
|
|
mkdir -p $out/share/fonts/truetype
|
|
cp -v *.ttf $out/share/fonts/truetype
|
|
cp -v ${./comic-sans-ms-alias.conf} $out/etc/fonts/conf.d/30-comic-sans-ms.conf
|
|
cp -v FONTLOG.txt $out/share/doc/${name}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://loudifier.com/comic-relief/;
|
|
description = "A font metric-compatible with Microsoft Comic Sans";
|
|
longDescription = ''
|
|
Comic Relief is a typeface designed to be metrically equivalent
|
|
to the popular Comic Sans MS. Comic Relief can be used in place
|
|
of Comic Sans MS without having to move, resize, or reset any
|
|
part of the copy. It contains all glyphs and characters
|
|
available in Comic Sans MS.
|
|
'';
|
|
license = licenses.ofl;
|
|
platforms = platforms.all;
|
|
maintainers = [maintainers.rycee];
|
|
|
|
# Reduce the priority of this package. The intent is that if you
|
|
# also install the `corefonts` package, then you probably will not
|
|
# want to install the font alias of this package.
|
|
priority = 10;
|
|
};
|
|
}
|