nixpkgs/pkgs/data/fonts/jetbrains-mono/default.nix

27 lines
689 B
Nix
Raw Normal View History

2020-01-16 09:20:00 +00:00
{ lib, fetchzip }:
let
2020-10-21 23:45:30 +00:00
version = "2.200";
2020-01-16 09:20:00 +00:00
in
2020-07-11 09:20:00 +00:00
fetchzip {
2020-01-16 09:20:00 +00:00
name = "JetBrainsMono-${version}";
url = "https://github.com/JetBrains/JetBrainsMono/releases/download/v${version}/JetBrainsMono-${version}.zip";
2020-01-16 09:20:00 +00:00
2020-10-21 23:45:30 +00:00
sha256 = "16v914ph9sgdz3w56yz9f26zpj2lpxjb6ppnphxlmbllh68z1fh4";
2020-01-16 09:20:00 +00:00
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
unzip -j $downloadedFile \*.woff2 -d $out/share/fonts/woff2
2020-01-16 09:20:00 +00:00
'';
meta = with lib; {
description = "A typeface made for developers";
homepage = "https://jetbrains.com/mono/";
license = licenses.ofl;
2020-01-16 09:20:00 +00:00
maintainers = [ maintainers.marsam ];
platforms = platforms.all;
};
}