3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/jetbrains-mono/default.nix

28 lines
757 B
Nix
Raw Normal View History

2020-01-16 09:20:00 +00:00
{ lib, fetchzip }:
let
version = "1.0.3";
2020-01-16 09:20:00 +00:00
in
fetchzip rec {
name = "JetBrainsMono-${version}";
url = "https://github.com/JetBrains/JetBrainsMono/releases/download/v${version}/JetBrainsMono-${version}.zip";
2020-01-16 09:20:00 +00:00
sha256 = "16am5fxvda24jfl8lb9jf8mkcqfc97scj8hvwgd3m771db0dpflf";
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 \*.woff -d $out/share/fonts/woff
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.asl20;
maintainers = [ maintainers.marsam ];
platforms = platforms.all;
};
}