nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchurl }:
2
3stdenvNoCC.mkDerivation {
4 pname = "pecita";
5 version = "5.4";
6
7 src = fetchurl {
8 url = "http://pecita.eu/b/Pecita.otf";
9 hash = "sha256-D9IZ+p4UFHUNt9me7D4vv0x6rMK9IaViKPliCEyX6t4=";
10 };
11
12 dontUnpack = true;
13
14 installPhase = ''
15 runHook preInstall
16
17 mkdir -p $out/share/fonts/opentype
18 cp -v $src $out/share/fonts/opentype/Pecita.otf
19
20 runHook postInstall
21 '';
22
23 meta = with lib; {
24 homepage = "http://pecita.eu/police-en.php";
25 description = "Handwritten font with connected glyphs";
26 license = licenses.ofl;
27 platforms = platforms.all;
28 maintainers = [ maintainers.rycee ];
29 };
30}