1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 16:42:09 +00:00
nixpkgs/pkgs/data/fonts/jetbrains-mono/default.nix

27 lines
716 B
Nix
Raw Normal View History

2020-01-16 09:20:00 +00:00
{ lib, fetchzip }:
let
2021-08-03 19:47:30 +01:00
version = "2.242";
2020-01-16 09:20:00 +00:00
in
2020-07-11 10:20:00 +01: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
2021-08-03 19:47:30 +01:00
sha256 = "sha256-flaUqpHmgebUzwPq0d+I3p9yqPmsV0kap04eApOQxdI=";
2020-01-16 09:20:00 +00:00
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
2020-01-16 09:20:00 +00:00
'';
meta = with lib; {
description = "A typeface made for developers";
homepage = "https://jetbrains.com/mono/";
changelog = "https://github.com/JetBrains/JetBrainsMono/blob/v${version}/Changelog.md";
license = licenses.ofl;
2020-01-16 09:20:00 +00:00
maintainers = [ maintainers.marsam ];
platforms = platforms.all;
};
}