about summary refs log tree commit diff
path: root/pkgs/by-name/pi/pixel-code/package.nix
blob: 3ce24afc67744fe119475f1b8458bbec70b5578e (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
{ lib, stdenvNoCC, fetchzip }:

stdenvNoCC.mkDerivation rec {
  name = "pixel-code";
  version = "2.2";

  src = fetchzip {
    url = "https://github.com/qwerasd205/PixelCode/releases/download/v${version}/otf.zip";
    hash = "sha256-GNYEnv0bIWz5d8821N46FD2NBNBf3Dd7DNqjSdJKDoE=";
    stripRoot=false;
  };

  installPhase = ''
    runHook preInstall

    install -D -m444 -t $out/share/fonts/opentype $src/otf/*.otf

    runHook postInstall
  '';

  meta = with lib; {
    homepage = "https://github.com/qwerasd205/PixelCode";
    description = "Pixel font designed to actually be good for programming";
    license = licenses.ofl;
    maintainers = with maintainers; [ mattpolzin ];
  };
}