blob: 36f03edb9e595b5327f224b0ed38b7add91a4cad (
plain)
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
27
28
29
30
31
32
33
34
35
|
{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
pname = "nerdfonts-dejavu-sans-mono";
version = "2.1.0";
buildInputs = [ unzip ];
src = fetchurl {
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/DejaVuSansMono.zip";
sha256 = "03qfrkzmhnn8dwgx4qhiigbz4dxs3957hydlr0j8vxl89j8c9g1z";
};
phases = [ "unpackPhase" "installPhase" ];
unpackPhase = '' unzip ${src} '';
installPhase = ''
mkdir -p $out/share/fonts/nerdfonts-dejavu-sans-mono
cp -r * $out/share/fonts/nerdfonts-dejavu-sans-mono
'';
meta = with lib; {
description = ''
Nerd Fonts is a project that attempts to patch as many developer targeted
and/or used fonts as possible. The patch is to specifically add a high
number of additional glyphs from popular 'iconic fonts' such as Font
Awesome, Devicons, Octicons, and others.
'';
homepage = "https://github.com/ryanoasis/nerd-fonts";
license = licenses.mit;
platforms = platforms.all;
};
}
|