nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchzip }:
2
3stdenv.mkDerivation (attrs: {
4 pname = "Alice";
5 version = "2.003";
6
7 outputs = [ "out" "woff2" ];
8
9 src = fetchzip {
10 url = with attrs; "https://github.com/cyrealtype/${pname}/releases/download/v${version}/${pname}-v${version}.zip";
11 stripRoot = false;
12 hash = "sha256-p+tE3DECfJyBIPyafGZ8jDYQ1lPb+iAnEwLyaUy7DW0=";
13 };
14
15 dontBuild = true;
16
17 installPhase = ''
18 runHook preInstall
19
20 install -m444 -Dt $out/share/fonts/truetype fonts/ttf/*.ttf
21 install -m444 -Dt $out/share/fonts/opentype fonts/otf/*.otf
22 install -m444 -Dt $woff2/share/fonts/woff2 fonts/webfonts/*.woff2
23
24 runHook postInstall
25 '';
26
27 meta = with lib; {
28 description = "Open-source font by Ksenia Erulevich";
29 homepage = "https://github.com/cyrealtype/Alice";
30 license = licenses.ofl;
31 platforms = platforms.all;
32 maintainers = with maintainers; [ ncfavier ];
33 };
34})