1{
2 lib,
3 stdenvNoCC,
4 fetchzip,
5}:
6
7stdenvNoCC.mkDerivation rec {
8 pname = "pixel-code";
9 version = "2.2";
10
11 src = fetchzip {
12 url = "https://github.com/qwerasd205/PixelCode/releases/download/v${version}/otf.zip";
13 hash = "sha256-GNYEnv0bIWz5d8821N46FD2NBNBf3Dd7DNqjSdJKDoE=";
14 stripRoot = false;
15 };
16
17 installPhase = ''
18 runHook preInstall
19
20 install -D -m444 -t $out/share/fonts/opentype $src/otf/*.otf
21
22 runHook postInstall
23 '';
24
25 meta = with lib; {
26 homepage = "https://github.com/qwerasd205/PixelCode";
27 description = "Pixel font designed to actually be good for programming";
28 license = licenses.ofl;
29 maintainers = with maintainers; [ mattpolzin ];
30 };
31}