2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "comic-relief";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "1.1";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://fontlibrary.org/assets/downloads/comic-relief/45c456b6db2aaf2f7f69ac66b5ac7239/comic-relief.zip";
|
|
|
|
stripRoot = false;
|
|
|
|
hash = "sha256-lvkMfaQvLMZ8F0Q5JnpmMsIAkR+XfihoHIoS4z5QEvA=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
mkdir -p $out/etc/fonts/conf.d
|
|
|
|
mkdir -p $out/share/doc/${pname}-${version}
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
cp -v ${./comic-sans-ms-alias.conf} $out/etc/fonts/conf.d/30-comic-sans-ms.conf
|
|
|
|
cp *.ttf -d $out/share/fonts/truetype
|
|
|
|
cp FONTLOG.txt -d $out/share/doc/${pname}-${version}
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://fontlibrary.org/en/font/comic-relief";
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = [ maintainers.rycee ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# 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;
|
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
}
|