Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "jetbrains-mono";
|
|
version = "2.304";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jetbrains";
|
|
repo = "jetbrainsmono";
|
|
rev = "v${version}";
|
|
hash = "sha256-SW9d5yVud2BWUJpDOlqYn1E1cqicIHdSZjbXjqOAQGw=";
|
|
};
|
|
|
|
env."PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION" = "python";
|
|
|
|
nativeBuildInputs = [
|
|
python3Packages.gftools
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
gftools builder sources/config.yaml
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm644 -t "$out/share/fonts/opentype/" fonts/otf/*.otf
|
|
install -Dm644 -t "$out/share/fonts/truetype/" fonts/ttf/*.ttf
|
|
install -Dm644 -t "$out/share/fonts/truetype/" fonts/variable/*.ttf
|
|
install -Dm644 -t "$out/share/fonts/WOFF2/" fonts/webfonts/*.woff2
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Typeface made for developers";
|
|
homepage = "https://jetbrains.com/mono/";
|
|
changelog = "https://github.com/JetBrains/JetBrainsMono/blob/v${version}/Changelog.md";
|
|
license = lib.licenses.ofl;
|
|
maintainers = with lib.maintainers; [ vinnymeller ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|