blob: f0ff4c1b2052ef3cbba6b2df3596a00880979acc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
{ lib, fetchzip }:
let
pname = "mno16";
version = "1.0";
in (fetchzip rec {
name = "${pname}-${version}";
url = "https://github.com/sevmeyer/${pname}/releases/download/${version}/${name}.zip";
sha256 = "1x06nl281fcjk6g1p4cgrgxakmwcci6vvasskaygsqlzxd8ig87w";
meta = with lib; {
description = "minimalist monospaced font";
homepage = "https://sev.dev/fonts/mno16";
license = licenses.cc0;
};
}).overrideAttrs (_: {
postFetch = ''
mkdir -p $out/share/fonts/truetype
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype/
'';
})
|