1{
2 stdenvNoCC,
3 lib,
4 fetchurl,
5}:
6
7let
8 version = "1.0";
9in
10stdenvNoCC.mkDerivation {
11 pname = "miracode";
12 inherit version;
13
14 src = fetchurl {
15 url = "https://github.com/IdreesInc/Miracode/releases/download/v${version}/Miracode.ttf";
16 hash = "sha256-Q+/D/TPlqOt779qYS/dF7ahEd3Mm4a4G+wdHB+Gutmo=";
17 };
18
19 dontUnpack = true;
20 dontConfigure = true;
21 dontBuild = true;
22
23 installPhase = ''
24 runHook preInstall
25 install -Dm644 $src $out/share/fonts/truetype/Miracode.ttf
26 runHook postInstall
27 '';
28
29 meta = with lib; {
30 description = "Sharp, readable, vector-y version of Monocraft";
31 homepage = "https://github.com/IdreesInc/Miracode";
32 license = licenses.ofl;
33 platforms = platforms.all;
34 maintainers = with maintainers; [ coca ];
35 };
36}