2020-01-16 10:20:00 +01:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
let
|
2021-08-03 20:47:30 +02:00
|
|
|
version = "2.242";
|
2020-01-16 10:20:00 +01:00
|
|
|
in
|
2020-07-11 11:20:00 +02:00
|
|
|
fetchzip {
|
2020-01-16 10:20:00 +01:00
|
|
|
name = "JetBrainsMono-${version}";
|
|
|
|
|
2020-08-27 11:20:00 +02:00
|
|
|
url = "https://github.com/JetBrains/JetBrainsMono/releases/download/v${version}/JetBrainsMono-${version}.zip";
|
2020-01-16 10:20:00 +01:00
|
|
|
|
2021-08-03 20:47:30 +02:00
|
|
|
sha256 = "sha256-flaUqpHmgebUzwPq0d+I3p9yqPmsV0kap04eApOQxdI=";
|
2020-01-16 10:20:00 +01:00
|
|
|
|
|
|
|
postFetch = ''
|
2020-01-24 13:30:00 +01:00
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
2020-01-16 10:20:00 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A typeface made for developers";
|
|
|
|
homepage = "https://jetbrains.com/mono/";
|
2020-12-28 15:46:00 +01:00
|
|
|
changelog = "https://github.com/JetBrains/JetBrainsMono/blob/v${version}/Changelog.md";
|
2020-08-27 11:20:00 +02:00
|
|
|
license = licenses.ofl;
|
2020-01-16 10:20:00 +01:00
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|