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

27 lines
664 B
Nix
Raw Normal View History

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