mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
27 lines
757 B
Nix
27 lines
757 B
Nix
{ lib, fetchzip }:
|
|
|
|
let
|
|
version = "1.0.3";
|
|
in
|
|
fetchzip rec {
|
|
name = "JetBrainsMono-${version}";
|
|
|
|
url = "https://github.com/JetBrains/JetBrainsMono/releases/download/v${version}/JetBrainsMono-${version}.zip";
|
|
|
|
sha256 = "16am5fxvda24jfl8lb9jf8mkcqfc97scj8hvwgd3m771db0dpflf";
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A typeface made for developers";
|
|
homepage = "https://jetbrains.com/mono/";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.marsam ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|