os/pkgs/data/fonts/dejavu-nerdfont/default.nix
2020-12-27 21:07:40 -07:00

28 lines
696 B
Nix

let version = "2.0.0";
in
{ stdenv, fetchzip }:
stdenv.mkDerivation {
pname = "dejavu-nerdfont";
inherit version;
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;
maintainers = [ maintainers.nrdxp ];
platforms = platforms.unix;
inherit version;
};
}