3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/pecita/default.nix
Robert Helgesson 667f26cabf pecita: download from difference source (close #9806)
The upstream URL of the Pecita font is often changed in-place resulting
in frequent hash mismatches. With this commit an archived version of the
font is used instead.
2015-09-13 09:59:41 +02:00

27 lines
659 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "pecita-${version}";
version = "5.2";
src = fetchurl {
url = "http://archive.rycee.net/pecita/${name}.tar.xz";
sha256 = "0ryfvxdla5iinwwin4dc1k89hk1bjq2mfdrrv67q6fdgz41l0qf0";
};
phases = ["unpackPhase" "installPhase"];
installPhase = ''
mkdir -p $out/share/fonts/opentype
cp -v Pecita.otf $out/share/fonts/opentype/Pecita.otf
'';
meta = with stdenv.lib; {
homepage = http://pecita.eu/police-en.php;
description = "Handwritten font with connected glyphs";
license = licenses.ofl;
platforms = platforms.all;
maintainers = [maintainers.rycee];
};
}