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

29 lines
814 B
Nix
Raw Normal View History

2020-01-16 01:20:00 -08:00
{ lib, fetchzip }:
let
2020-07-13 02:20:00 -07:00
version = "2.001";
2020-01-16 01:20:00 -08:00
in
2020-07-11 02:20:00 -07:00
fetchzip {
2020-01-16 01:20:00 -08:00
name = "JetBrainsMono-${version}";
2020-07-11 02:20:00 -07:00
url = "https://github.com/JetBrains/JetBrainsMono/releases/download/v${version}/JetBrains.Mono.${version}.zip";
2020-01-16 01:20:00 -08:00
2020-07-13 02:20:00 -07:00
sha256 = "06rh8dssq6qzgb9rri3an2ka24j47c0i8yhgq81yyg471spc39h1";
2020-01-16 01:20:00 -08:00
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
unzip -j $downloadedFile \*.eot -d $out/share/fonts/eot
unzip -j $downloadedFile \*.woff -d $out/share/fonts/woff
unzip -j $downloadedFile \*.woff2 -d $out/share/fonts/woff2
2020-01-16 01:20:00 -08:00
'';
meta = with lib; {
description = "A typeface made for developers";
homepage = "https://jetbrains.com/mono/";
license = licenses.asl20;
maintainers = [ maintainers.marsam ];
platforms = platforms.all;
};
}