nixpkgs/pkgs/data/fonts/jetbrains-mono/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
975 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchzip }:
2020-01-16 09:20:00 +00:00
stdenvNoCC.mkDerivation rec {
pname = "jetbrains-mono";
version = "2.304";
2020-01-16 09:20:00 +00:00
src = fetchzip {
url = "https://github.com/JetBrains/JetBrainsMono/releases/download/v${version}/JetBrainsMono-${version}.zip";
sha256 = "sha256-rv5A3F1zdcUJkmw09st1YxmEIkIoYJaMYGyZjic8jfc=";
stripRoot = false;
};
2020-01-16 09:20:00 +00:00
dontPatch = true;
dontConfigure = true;
dontBuild = true;
doCheck = false;
dontFixup = true;
2020-01-16 09:20:00 +00:00
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
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;
};
}