26 lines
689 B
Nix
26 lines
689 B
Nix
{ lib, fetchzip }:
|
|
|
|
let
|
|
version = "2.200";
|
|
in
|
|
fetchzip {
|
|
name = "JetBrainsMono-${version}";
|
|
|
|
url = "https://github.com/JetBrains/JetBrainsMono/releases/download/v${version}/JetBrainsMono-${version}.zip";
|
|
|
|
sha256 = "16v914ph9sgdz3w56yz9f26zpj2lpxjb6ppnphxlmbllh68z1fh4";
|
|
|
|
postFetch = ''
|
|
mkdir -p $out/share/fonts
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
|
unzip -j $downloadedFile \*.woff2 -d $out/share/fonts/woff2
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A typeface made for developers";
|
|
homepage = "https://jetbrains.com/mono/";
|
|
license = licenses.ofl;
|
|
maintainers = [ maintainers.marsam ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|