devos/pkgs/data/fonts/dejavu-nerdfont/default.nix

25 lines
654 B
Nix
Raw Normal View History

2019-12-23 05:59:42 +01:00
{ stdenv, fetchzip }:
stdenv.mkDerivation rec {
name = "dejavu-nerdfont-${version}";
2019-12-23 05:59:42 +01:00
version = "2.0.0";
src = fetchzip {
2020-01-04 06:06:31 +01:00
url =
"https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/DejaVuSansMono.zip";
2019-12-23 05:59:42 +01:00
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";
2020-01-04 06:06:31 +01:00
homepage = "https://github.com/ryanoasis/nerd-fonts";
2019-12-23 05:59:42 +01:00
license = licenses.mit;
maintainers = [ maintainers.nrdxp ];
inherit version;
2019-12-23 05:59:42 +01:00
};
}