nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 pname = "OCR-A";
5 version = "1.0";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/ocr-a-font/OCR-A/${version}/OCRA.ttf";
9 sha256 = "0kpmjjxwzm84z8maz6lq9sk1b0xv1zkvl28lwj7i0m2xf04qixd0";
10 };
11
12 dontUnpack = true;
13
14 installPhase = ''
15 install -D -m 0644 $src $out/share/fonts/truetype/OCRA.ttf
16 '';
17
18 meta = with lib; {
19 description = "ANSI OCR font from the '60s. CYBER";
20 homepage = "https://sourceforge.net/projects/ocr-a-font/";
21 license = licenses.publicDomain;
22 maintainers = with maintainers; [ V ];
23 };
24}