terminus-nerdfont & incosolata-nerdfont: use generic nerdfonts drv

This commit is contained in:
Doron Behar 2020-04-10 02:13:54 +03:00
parent 6ae7abcc1a
commit 4ab8ffe187
3 changed files with 6 additions and 58 deletions

View file

@ -1,28 +0,0 @@
{ lib, fetchzip }:
let
version = "2.0.0";
in fetchzip {
name = "inconsolata-nerdfont-${version}";
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/Inconsolata.zip";
postFetch = ''
mkdir -p $out/share/fonts/inconsolata-nerdfont
unzip -j $downloadedFile -d $out/share/fonts/inconsolata-nerdfont
'';
sha256 = "06i1akjblqd038cn5lvz67lwp6afpv31vqcfdihp66qisgbgm4w9";
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;
};
}

View file

@ -1,28 +0,0 @@
{ lib, fetchzip }:
let
version = "2.0.0";
in fetchzip {
name = "terminus-nerdfont-${version}";
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/Terminus.zip";
postFetch = ''
mkdir -p $out/share/fonts/terminus-nerdfont
unzip -j $downloadedFile -d $out/share/fonts/terminus-nerdfont
'';
sha256 = "036i1qwwrb0r8hvcjf3h34w0g7mbsmngvrjic98jgikbz3i2f46c";
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;
};
}

View file

@ -17795,7 +17795,9 @@ in
inconsolata-lgc = callPackage ../data/fonts/inconsolata/lgc.nix {};
inconsolata-nerdfont = callPackage ../data/fonts/inconsolata-nerdfont {};
inconsolata-nerdfont = nerdfonts.override {
fonts = [ "Inconsolata" ];
};
input-fonts = callPackage ../data/fonts/input-fonts { };
@ -18199,7 +18201,9 @@ in
terminus_font_ttf = callPackage ../data/fonts/terminus-font-ttf { };
terminus-nerdfont = callPackage ../data/fonts/terminus-nerdfont { };
terminus-nerdfont = nerdfonts.override {
fonts = [ "Terminus" ];
};
termtekst = callPackage ../misc/emulators/termtekst { };