nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3let
4 majorVersion = "0";
5 minorVersion = "200";
6in
7stdenvNoCC.mkDerivation (finalAttrs: {
8 pname = "melete";
9 version = "${majorVersion}.${minorVersion}";
10
11 src = fetchzip {
12 url = "https://dotcolon.net/download/fonts/${finalAttrs.pname}_${majorVersion}${minorVersion}.zip";
13 hash = "sha256-y1xtNM1Oy92gOvbr9J71XNxb1JeTzOgxKms3G2YHK00=";
14 stripRoot = false;
15 };
16
17 installPhase = ''
18 runHook preInstall
19
20 install -D -m444 -t $out/share/fonts/opentype $src/*.otf
21
22 runHook postInstall
23 '';
24
25 meta = with lib; {
26 homepage = "http://dotcolon.net/font/${finalAttrs.pname}/";
27 description = "A headline typeface that could be used as a movie title";
28 platforms = platforms.all;
29 maintainers = with maintainers; [ minijackson ];
30 license = licenses.ofl;
31 };
32})