develop: add DejaVu Nerd Font
This commit is contained in:
parent
fc13190a29
commit
5921d56779
2 changed files with 35 additions and 0 deletions
21
pkgs/data/fonts/dejavu-nerdfont/default.nix
Normal file
21
pkgs/data/fonts/dejavu-nerdfont/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ stdenv, fetchzip }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "dejavu-sans-mono-nerdfonts-${version}";
|
||||||
|
version = "2.0.0";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/DejaVuSansMono.zip";
|
||||||
|
hash = "sha256-yMvKzt5CKpK1bThT25lqSyRvZRCFvo6HHbTj+ripdCo=";
|
||||||
|
stripRoot = false;
|
||||||
|
};
|
||||||
|
buildCommand = ''
|
||||||
|
install --target $out/share/fonts/opentype -D $src/*Mono.ttf
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Nerdfont version of DejaVu";
|
||||||
|
homepage = https://github.com/ryanoasis/nerd-fonts;
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
|
@ -31,6 +31,20 @@
|
||||||
wget
|
wget
|
||||||
];
|
];
|
||||||
|
|
||||||
|
fonts = {
|
||||||
|
fonts = [ pkgs.dejaVuNerdFont ];
|
||||||
|
fontconfig.defaultFonts.monospace = [
|
||||||
|
"DejaVu Sans Mono Nerd Font Complete Mono"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
nixpkgs.overlays = let
|
||||||
|
font = self: super: {
|
||||||
|
dejaVuNerdFont = super.callPackage ../../pkgs/data/fonts/dejavu-nerdfont {};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
[ font ];
|
||||||
|
|
||||||
documentation.dev.enable = true;
|
documentation.dev.enable = true;
|
||||||
|
|
||||||
programs.thefuck.enable = true;
|
programs.thefuck.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue