mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
27 lines
668 B
Nix
27 lines
668 B
Nix
|
{ 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;
|
||
|
};
|
||
|
}
|