2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
let
|
2020-12-29 15:07:52 +00:00
|
|
|
version = "2.221";
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
2020-07-18 16:06:22 +00:00
|
|
|
fetchzip {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "JetBrainsMono-${version}";
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
url = "https://github.com/JetBrains/JetBrainsMono/releases/download/v${version}/JetBrainsMono-${version}.zip";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-29 15:07:52 +00:00
|
|
|
sha256 = "1in3znnj0i0yfwj93ncxi3s1cp9lhgwnv2r14br47rr7vik4zjr6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A typeface made for developers";
|
|
|
|
homepage = "https://jetbrains.com/mono/";
|
2020-12-29 15:07:52 +00:00
|
|
|
changelog = "https://github.com/JetBrains/JetBrainsMono/blob/v${version}/Changelog.md";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.ofl;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|