about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/mi/minecraftia/package.nix
blob: 584730ea8df3bf236682d667da8c8fcd7e5ed5be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, fetchzip, stdenvNoCC }:

stdenvNoCC.mkDerivation {
  pname = "minecraftia";
  version = "1.0";

  src = fetchzip {
    url = "https://fontlibrary.org/assets/downloads/minecraftia/71962a7e3d4a70435c030466a12f1d63/minecraftia.zip";
    hash = "sha256-AZFSts0GpBttbhl1LHMORiqqc9o7ZWhh5hbjhSnxAlA=";
    stripRoot = false;
  };

  installPhase = ''
    runHook preInstall

    install -D -m444 -t $out/share/fonts/truetype $src/Minecraftia.ttf

    runHook postInstall
  '';

  meta = with lib; {
    homepage = "https://fontlibrary.org/en/font/minecraftia";
    description = "Cool Minecraft font";
    license = licenses.cc-by-sa-30;
    platforms = platforms.all;
    maintainers = with lib.maintainers; [ gepbird ];
  };
}