base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / al / alice / package.nix
blob985ba09926f49e0f2704b2c0ce1ea67c4f529b31
1 { lib, stdenv, fetchzip }:
3 stdenv.mkDerivation (attrs: {
4   pname = "Alice";
5   version = "2.003";
7   outputs = [ "out" "woff2" ];
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   };
15   dontBuild = true;
17   installPhase = ''
18     runHook preInstall
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
24     runHook postInstall
25   '';
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   };