depot/third_party/nixpkgs/pkgs/data/fonts/jetbrains-mono/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
984 B
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "jetbrains-mono";
version = "2.304";
src = fetchzip {
url = "https://github.com/JetBrains/JetBrainsMono/releases/download/v${version}/JetBrainsMono-${version}.zip";
sha256 = "sha256-rv5A3F1zdcUJkmw09st1YxmEIkIoYJaMYGyZjic8jfc=";
stripRoot = false;
};
dontPatch = true;
dontConfigure = true;
dontBuild = true;
doCheck = false;
dontFixup = true;
installPhase = ''
runHook preInstall
install -Dm644 -t $out/share/fonts/truetype/ fonts/ttf/*.ttf
install -Dm644 -t $out/share/fonts/truetype/ fonts/variable/*.ttf
runHook postInstall
'';
meta = with lib; {
description = "Typeface made for developers";
homepage = "https://jetbrains.com/mono/";
changelog = "https://github.com/JetBrains/JetBrainsMono/blob/v${version}/Changelog.md";
license = licenses.ofl;
maintainers = with maintainers; [ vinnymeller ];
platforms = platforms.all;
};
}