2023-01-20 10:41:00 +00:00
|
|
|
# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
|
2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
let
|
2021-04-22 02:08:21 +00:00
|
|
|
version = "1.3";
|
2023-01-20 10:41:00 +00:00
|
|
|
in (fetchzip {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "mononoki-${version}";
|
|
|
|
|
|
|
|
url = "https://github.com/madmalik/mononoki/releases/download/${version}/mononoki.zip";
|
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
sha256 = "sha256-K2uOpJRmQ1NcDZfh6rorCF0MvGHFCsSW8J7Ue9OC/OY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/madmalik/mononoki";
|
|
|
|
description = "A font for programming and code review";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
}).overrideAttrs (_: {
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts/mononoki
|
|
|
|
unzip -j $downloadedFile -d $out/share/fonts/mononoki
|
|
|
|
'';
|
|
|
|
})
|