summary refs log tree commit diff
path: root/pkgs/data/fonts/mononoki/default.nix
blob: d93c0fb96d41813a2000ae6bf950dac9052bd3a4 (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
{ stdenv, fetchurl, unzip }:

stdenv.mkDerivation rec {
  name = "mononoki-${version}";
  version = "1.2";

  src = fetchurl {
    url = "https://github.com/madmalik/mononoki/releases/download/${version}/mononoki.zip";
    sha256 = "0n66bnn2i776fbky14qjijwsbrja9yzc1xfsmvz99znvcdvflafg";
  };

  buildInputs = [ unzip ];
  phases = [ "unpackPhase" ];

  unpackPhase = ''
    mkdir -p $out/share/fonts/mononoki
    unzip $src -d $out/share/fonts/mononoki
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/madmalik/mononoki;
    description = "A font for programming and code review";
    license = licenses.ofl;
    platforms = platforms.all;
  };
}