nerdfonts: separate into packages under nerd-fonts
This commit is contained in:
parent
924dd67481
commit
ee2bb9be3e
@ -749,6 +749,11 @@
|
||||
- The `atlassian-crowd` package and its `services.crowd` NixOS module
|
||||
- The `atlassian-jira` package and its `services.jira` NixOS module
|
||||
|
||||
- `nerdfonts` has been separated into individual font packages under the namespace `nerd-fonts`. The directories for font
|
||||
files have changed from `$out/share/fonts/{opentype,truetype}/NerdFonts` to
|
||||
`$out/share/fonts/{opentype,truetype}/NerdFonts/<fontDirName>`, where `<fontDirName>` can be found in the
|
||||
[official website](https://www.nerdfonts.com/font-downloads) as the titles in preview images, with the "Nerd Font"
|
||||
suffix and any whitespaces trimmed.
|
||||
|
||||
- `python3Packages.nose` has been removed, as it has been deprecated and unmaintained for almost a decade and does not work on Python 3.12.
|
||||
Please switch to `pytest` or another test runner/framework.
|
||||
|
@ -2,7 +2,7 @@
|
||||
, harfbuzz, fontconfig, pkg-config, ncurses, imagemagick
|
||||
, libstartup_notification, libGL, libX11, libXrandr, libXinerama, libXcursor
|
||||
, libxkbcommon, libXi, libXext, wayland-protocols, wayland, xxHash
|
||||
, nerdfonts
|
||||
, nerd-fonts
|
||||
, lcms2
|
||||
, librsync
|
||||
, openssl
|
||||
@ -144,7 +144,7 @@ buildPythonApplication rec {
|
||||
|
||||
# Add the font by hand because fontconfig does not finds it in darwin
|
||||
mkdir ./fonts/
|
||||
cp "${(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})}/share/fonts/truetype/NerdFonts/SymbolsNerdFontMono-Regular.ttf" ./fonts/
|
||||
cp "${nerd-fonts.symbols-only}/share/fonts/truetype/NerdFonts/Symbols/SymbolsNerdFontMono-Regular.ttf" ./fonts/
|
||||
|
||||
${ lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) "export MACOSX_DEPLOYMENT_TARGET=11" }
|
||||
${if stdenv.hostPlatform.isDarwin then ''
|
||||
|
28
pkgs/data/fonts/nerd-fonts/convert-license.nix
Normal file
28
pkgs/data/fonts/nerd-fonts/convert-license.nix
Normal file
@ -0,0 +1,28 @@
|
||||
lib:
|
||||
let
|
||||
ls = lib.licenses;
|
||||
in
|
||||
licenseString:
|
||||
builtins.getAttr licenseString (
|
||||
(
|
||||
with builtins;
|
||||
lib.trivial.pipe (attrValues ls) [
|
||||
(filter (l: l ? spdxId))
|
||||
(map (l: lib.attrsets.nameValuePair l.spdxId l))
|
||||
listToAttrs
|
||||
]
|
||||
)
|
||||
// {
|
||||
"Bitstream-Vera AND MIT" = with ls; [
|
||||
bitstreamVera
|
||||
mit
|
||||
];
|
||||
"LicenseRef-Monofur" = ls.free; # upstream `src/unpatched-fonts/Monofur/LICENSE.txt`
|
||||
"LicenseRef-UbuntuFont" = ls.ufl;
|
||||
"LicenseRef-VicFieger" = ls.free; # upstream `src/unpatched-fonts/HeavyData/Vic Fieger License.txt`
|
||||
"MIT OR OFL-1.1-no-RFN" = ls.mit;
|
||||
"OFL-1.1-RFN" = ls.ofl;
|
||||
"OFL-1.1-no-RFN or LGPL-2.1-only" = ls.ofl;
|
||||
"OFL-1.1-no-RFN" = ls.ofl;
|
||||
}
|
||||
)
|
94
pkgs/data/fonts/nerd-fonts/default.nix
Normal file
94
pkgs/data/fonts/nerd-fonts/default.nix
Normal file
@ -0,0 +1,94 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
}:
|
||||
|
||||
let
|
||||
releaseInfo = lib.trivial.importJSON ./manifests/release.json;
|
||||
fontsInfo = lib.trivial.importJSON ./manifests/fonts.json;
|
||||
checksums = lib.trivial.importJSON ./manifests/checksums.json;
|
||||
|
||||
convertAttrName =
|
||||
name:
|
||||
let
|
||||
lowerName = lib.strings.toLower name;
|
||||
in
|
||||
if builtins.match "[[:digit:]].*" lowerName != null then "_" + lowerName else lowerName;
|
||||
|
||||
convertVersion =
|
||||
version: date:
|
||||
if builtins.match "[[:digit:]].*" version != null then
|
||||
version
|
||||
else
|
||||
"0-unstable-" + builtins.head (lib.strings.splitString "T" date);
|
||||
|
||||
convertLicense = import ./convert-license.nix lib;
|
||||
|
||||
makeNerdFont =
|
||||
{
|
||||
caskName,
|
||||
description,
|
||||
folderName,
|
||||
licenseId,
|
||||
patchedName,
|
||||
version,
|
||||
...
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = lib.strings.toLower caskName;
|
||||
version = convertVersion version releaseInfo.published_at;
|
||||
|
||||
src =
|
||||
let
|
||||
filename = folderName + ".tar.xz";
|
||||
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/${releaseInfo.tag_name}/${filename}";
|
||||
sha256 = checksums.${filename};
|
||||
in
|
||||
fetchurl {
|
||||
inherit url sha256;
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
installPhase =
|
||||
let
|
||||
dirName = lib.strings.concatStrings (lib.strings.splitString " " patchedName);
|
||||
in
|
||||
''
|
||||
runHook preInstall
|
||||
|
||||
dst_opentype=$out/share/fonts/opentype/NerdFonts/${dirName}
|
||||
dst_truetype=$out/share/fonts/truetype/NerdFonts/${dirName}
|
||||
|
||||
find -name \*.otf -exec mkdir -p $dst_opentype \; -exec cp -p {} $dst_opentype \;
|
||||
find -name \*.ttf -exec mkdir -p $dst_truetype \; -exec cp -p {} $dst_truetype \;
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = {
|
||||
command = ./update.py;
|
||||
supportedFeatures = [ "commit" ];
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Nerd Fonts: " + description;
|
||||
license = convertLicense licenseId;
|
||||
homepage = "https://nerdfonts.com/";
|
||||
changelog = "https://github.com/ryanoasis/nerd-fonts/blob/${releaseInfo.tag_name}/changelog.md";
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = with lib.maintainers; [
|
||||
doronbehar
|
||||
rc-zb
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nerdFonts = lib.trivial.pipe fontsInfo [
|
||||
(map (font: lib.attrsets.nameValuePair (convertAttrName font.caskName) (makeNerdFont font)))
|
||||
builtins.listToAttrs
|
||||
];
|
||||
in
|
||||
|
||||
nerdFonts
|
69
pkgs/data/fonts/nerd-fonts/manifests/checksums.json
Normal file
69
pkgs/data/fonts/nerd-fonts/manifests/checksums.json
Normal file
@ -0,0 +1,69 @@
|
||||
{
|
||||
"0xProto.tar.xz": "cf165059645c02212fbdb5a27858056772d12a762468a0971c5bed3de88d0427",
|
||||
"3270.tar.xz": "6168e416a4331e8d59d5436d9a3c8170f98ee044e2fe662cbf1d7bea612f927d",
|
||||
"Agave.tar.xz": "c307d029f638a411834972569317a04b9d75e968a53b12e41c787db064a6bef7",
|
||||
"AnonymousPro.tar.xz": "1e4b7f7c8528c9d43760eacdb5d423ad272f028cad5958e594a30486dce409d3",
|
||||
"Arimo.tar.xz": "20f3bc015e46e4fe9f57cfe495eaa167b796e047df4f98676fe16649aba4ffb8",
|
||||
"AurulentSansMono.tar.xz": "d71be5a39c772a58d2592e490784298753573ee47836633ade381f1eeee39c72",
|
||||
"BigBlueTerminal.tar.xz": "432c4a9080038554a94a46f435cb1aca3d58e23deb445e5c39d2c740a9edac84",
|
||||
"BitstreamVeraSansMono.tar.xz": "5328418c755f076363e46960f311c734c0939167ab02eb718a8fb7bcc1bbd2e8",
|
||||
"CascadiaCode.tar.xz": "5af79aaebec3aa474c801e48aa2cb901cf1e9c03cbb3b6c189fed439e867e6e9",
|
||||
"CascadiaMono.tar.xz": "9672540e8707d221fe48fa5da49aec5a605b2d38a85c9fed959eb76990b33367",
|
||||
"CodeNewRoman.tar.xz": "45d29f5be8add78ae271550d542387f4c98bbbe62e395a3646bc67f66f9d3c5c",
|
||||
"ComicShannsMono.tar.xz": "dc0835a985f19491526fb5773ad7d9646bbdb962cda5076615b686427fb565dc",
|
||||
"CommitMono.tar.xz": "173f5a8fe5bb0a4e7db61ac9a77e97c7b5071b9b2a9f8dbaf8432311518a5f4a",
|
||||
"Cousine.tar.xz": "b8f14c715bdcce4afafd9c4e57acba5b9d5c1c3357f054a505716187ae1e98b1",
|
||||
"D2Coding.tar.xz": "c01665970a43c13b27ea1fb9c85055d9c2369b3f9f2d1b37c08ffeaad7830cb0",
|
||||
"DaddyTimeMono.tar.xz": "6e7dd3ebdb82ee4a5b358801c082553692431e246c996dcbb3a737a28c78e4db",
|
||||
"DejaVuSansMono.tar.xz": "b94bde4d2e9ceb1f2c19b2846c1a9892797e4e15e9594303eb7088534244a18b",
|
||||
"DroidSansMono.tar.xz": "d3910065466618646baf9a621d385f8122c310e29d449462e5bd25bd300e0dd7",
|
||||
"EnvyCodeR.tar.xz": "d1ca4f8bae74e089775a9ba6b2015ee79e03ec0970e76499f56131499524efa4",
|
||||
"FantasqueSansMono.tar.xz": "2d6db874195ac7ec4d9b396a9612e1e342b060d8aef0304b0b99c49c3b9a351d",
|
||||
"FiraCode.tar.xz": "def4b29f7aa0620a7fa12edb28197a2697680b5e21636fa3dcc602e08ae13bc4",
|
||||
"FiraMono.tar.xz": "c0224b12e3da90550bb1c42a9149346326ebbc9f41cf83a5e6c8944e57772bc5",
|
||||
"GeistMono.tar.xz": "0f247f19afece755de1a1b7b2eae38d48023ce4436323ab51f571d38314c6c73",
|
||||
"Go-Mono.tar.xz": "44a4ce529f51dc5f067a10b851acd06a1dc7ea7d6af5ba8a420e057232c8d948",
|
||||
"Gohu.tar.xz": "7ab613fac9d5931bd32d8e5a438ae0cb17536317e171f28ee5ddb8a171941041",
|
||||
"Hack.tar.xz": "89b9023f3f6d5e4b8040022ff29b36faee440cf49015fda163215c922569b5f3",
|
||||
"Hasklig.tar.xz": "4fb0ff16a5e587e65f59e55d08283729de700f0c0bf682ec1bef18ab51264ada",
|
||||
"HeavyData.tar.xz": "f6b8a6cfb0d06bd25e7653c2ac18a562f53f6143eb131195a5fca4dde30d6aa8",
|
||||
"Hermit.tar.xz": "23552caf1b6075858756de2e8f3a3fbb9799b478882f3f7afeefa8ca7f4601ae",
|
||||
"IBMPlexMono.tar.xz": "97e2774a01a151fc2f711f018831d24777472daf0f2822230ce20a7ac227a041",
|
||||
"Inconsolata.tar.xz": "2c9f5a1117e1b5a640287081680837e7b870c94868627766483011ff0b80c3f7",
|
||||
"InconsolataGo.tar.xz": "69e0a42a6e8072b2a084f09a5056e857e9b620afd57d7d07c8d1da2cf4809b41",
|
||||
"InconsolataLGC.tar.xz": "7a96f8cc30e57a426ffce3b844deb10d6325181b28df9b76735308f2d787dc2d",
|
||||
"IntelOneMono.tar.xz": "a016b61e49c395c5b1e5bd2c919ae668724a33f2ef14da3becf932da401a080d",
|
||||
"Iosevka.tar.xz": "1be123fa355a9acee79d19891c02499792f6a4e12ffa8973c6b1cb738465f337",
|
||||
"IosevkaTerm.tar.xz": "b5d5e7b26c76f1cfe97a697716fdd682b18faf9f73883915c2b0c2d9fcc48cf5",
|
||||
"IosevkaTermSlab.tar.xz": "3132ff085ce404a3c065054638f3dc68de27d07a5cc5379b90b2a248877971eb",
|
||||
"JetBrainsMono.tar.xz": "6cf8822bc1ca18e34b06578c7499f380c019e6ffc883eed26df5f498dfcc4006",
|
||||
"Lekton.tar.xz": "2282cb16651a377d5b084486a268189fdafd9067775f1f24ffaf5a36a2459501",
|
||||
"LiberationMono.tar.xz": "9d0ad55cbd83967ca93e940f4951d41b23a44c892d9a4788af460d71f8bb81a4",
|
||||
"Lilex.tar.xz": "a2720d1fbf7ebb51b6a0ab191de41d96c7594d61f02c582db2249ea30c1ce263",
|
||||
"MPlus.tar.xz": "5c60700788b093e0bfb30b2f59b52397f3fdc2cdf2b6fb9307a58b61e7ddfe74",
|
||||
"MartianMono.tar.xz": "62484ea8f66ae3b75610b89c5d3258f8610844fec6d8402239c27a5042dccc7d",
|
||||
"Meslo.tar.xz": "1abdaf5542b75a51d75de6373148a8e401b28eda88e6c90f243fb6114fd659ea",
|
||||
"Monaspace.tar.xz": "e5d2e8180d5df1fe473b598edac5f67ce38b1d906248936eb386dd332a338346",
|
||||
"Monofur.tar.xz": "eb035bfb09043db2278dd6f95ca956a7cc42a3e6cc30910295c51555b2e8ff81",
|
||||
"Monoid.tar.xz": "c7a5ff556ff4aad5381e8a57e0d17d79c591e1267f0a9c271b09306ac4581aba",
|
||||
"Mononoki.tar.xz": "eb3697dd13c5e50951023c0768538a2f70e1e4f22d94800a45779a6d1b49f7a3",
|
||||
"NerdFontsSymbolsOnly.tar.xz": "b7a3eee24d2b0910f3a07705f1e053221d2535f07c5a13614c4dead2620e9978",
|
||||
"Noto.tar.xz": "4be621219ff5508c4176487b4fdc8cd0f6d8d8fceeb935f83df11a49dca3096f",
|
||||
"OpenDyslexic.tar.xz": "96d43a8c53173b992537a1d34ae984f65a8999b7c8991a02c17d4b77497581fa",
|
||||
"Overpass.tar.xz": "fcb796892b105c98ad05a29f184f09a02038970ff6a95f8cda082cd1b1b08cde",
|
||||
"ProFont.tar.xz": "fe3bd035d43b943de17e6e0da1dfb0bd1dcc1b319e10c5e5925ab70436d48385",
|
||||
"ProggyClean.tar.xz": "1a58c57b63f380441ea07d44780680844afe12dd299651b87db59f9f311702d1",
|
||||
"Recursive.tar.xz": "e5f7db6999bf6dd6501d8933575caab49827486ce774c6c35a6e411da8c6cfba",
|
||||
"RobotoMono.tar.xz": "3ccfd4d8d625c708e593e46ea0404536984f69f11c7a08b5a59eb9bbc9dfde3c",
|
||||
"ShareTechMono.tar.xz": "dbcfa99f4d41f05e4b59eb2197873515c035eff1a68800bf0f43db471ef7ba57",
|
||||
"SourceCodePro.tar.xz": "56a43a2729035f7fec17b68823a7db9ea06fcf9ec8d0b5e70d73ab79488a1b21",
|
||||
"SpaceMono.tar.xz": "b6b9d7c604cc55d2c6859ad098371dfbfe540eb2d5aab4faad21f81149659338",
|
||||
"Terminus.tar.xz": "658cc9506acf89b5f5dfc6b55eb9899b782dcf8d89f3d11c9abb2c4d52617f12",
|
||||
"Tinos.tar.xz": "21b43c2314614733f5e9b4b4f3117edc3986d2b0f2a33409b111cc38360e8391",
|
||||
"Ubuntu.tar.xz": "6a254d48c837974e7c43fb92124e8e057c1d4b31c9ebe635f5c562233a24f3ad",
|
||||
"UbuntuMono.tar.xz": "2b678521c5c8a963ba2c8f7846e21df4323838c64d70d59cb1ff38124d7f7396",
|
||||
"UbuntuSans.tar.xz": "3ef8c7ca298d5528cf4296298ab67d7c5c2ba00030735db4851cea8f52d8444a",
|
||||
"VictorMono.tar.xz": "aa1b09dca861a306cd24c2c47fded88b63ae833ff0e815dad3642465583e300f",
|
||||
"ZedMono.tar.xz": "2df9c9e54e5a2bc19c2ffd1df7ee283e02ba2e9a5fda1067b4884375ae4b0b7a",
|
||||
"iA-Writer.tar.xz": "85b0b39b30a9ddd89462b0a7a732b461de04f667dc01a5e987bf0c2accbb576f"
|
||||
}
|
538
pkgs/data/fonts/nerd-fonts/manifests/fonts.json
Normal file
538
pkgs/data/fonts/nerd-fonts/manifests/fonts.json
Normal file
@ -0,0 +1,538 @@
|
||||
[
|
||||
{
|
||||
"caskName": "0xproto",
|
||||
"description": "An opinionated font for software engineers",
|
||||
"folderName": "0xProto",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "0xProto",
|
||||
"version": "1.603"
|
||||
},
|
||||
{
|
||||
"caskName": "3270",
|
||||
"description": "Derived from the x3270 font, a modern format of a font with high nostalgic value",
|
||||
"folderName": "3270",
|
||||
"licenseId": "BSD-3-Clause",
|
||||
"patchedName": "3270",
|
||||
"version": "3.0.1"
|
||||
},
|
||||
{
|
||||
"caskName": "agave",
|
||||
"description": "A small, monospace, outline font that is geometrically regular and simple",
|
||||
"folderName": "Agave",
|
||||
"licenseId": "MIT",
|
||||
"patchedName": "Agave",
|
||||
"version": "37"
|
||||
},
|
||||
{
|
||||
"caskName": "anonymice",
|
||||
"description": "Inspired by Anonymous 9 on Macintosh, since 2009, distinct `O`, `0`, `I`, `l`, `1`",
|
||||
"folderName": "AnonymousPro",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "AnonymicePro",
|
||||
"version": "1.002"
|
||||
},
|
||||
{
|
||||
"caskName": "arimo",
|
||||
"description": "Metrically similar to Arial, pan-European WGL character set, sans serif",
|
||||
"folderName": "Arimo",
|
||||
"licenseId": "Apache-2.0",
|
||||
"patchedName": "Arimo",
|
||||
"version": "1.33"
|
||||
},
|
||||
{
|
||||
"caskName": "aurulent-sans-mono",
|
||||
"description": "Sans serif, designed by Stephen G. Hartke which also created Verily Serif",
|
||||
"folderName": "AurulentSansMono",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "AurulentSansM",
|
||||
"version": "-"
|
||||
},
|
||||
{
|
||||
"caskName": "bigblue-terminal",
|
||||
"description": "Nostalgic, closely based on IBM's 8x14 EGA/VGA charset",
|
||||
"folderName": "BigBlueTerminal",
|
||||
"licenseId": "CC-BY-SA-4.0",
|
||||
"patchedName": "BigBlueTerm",
|
||||
"version": "-"
|
||||
},
|
||||
{
|
||||
"caskName": "bitstream-vera-sans-mono",
|
||||
"description": "Dotted zero, compact lowercase characters",
|
||||
"folderName": "BitstreamVeraSansMono",
|
||||
"licenseId": "Bitstream-Vera",
|
||||
"patchedName": "BitstromWera",
|
||||
"version": "1.1"
|
||||
},
|
||||
{
|
||||
"caskName": "blex-mono",
|
||||
"description": "It's global, it's versatile and it's distinctly IBM",
|
||||
"folderName": "IBMPlexMono",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "BlexMono",
|
||||
"version": "2.004 (6.4.0)"
|
||||
},
|
||||
{
|
||||
"caskName": "caskaydia-cove",
|
||||
"description": "A fun, new monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal",
|
||||
"folderName": "CascadiaCode",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "CaskaydiaCove",
|
||||
"version": "2111.01"
|
||||
},
|
||||
{
|
||||
"caskName": "caskaydia-mono",
|
||||
"description": "Like Cascadia Code but without any ligatures",
|
||||
"folderName": "CascadiaMono",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "CaskaydiaMono",
|
||||
"version": "2111.01"
|
||||
},
|
||||
{
|
||||
"caskName": "code-new-roman",
|
||||
"description": "Tunable, slashed zeros, compact smaller characters",
|
||||
"folderName": "CodeNewRoman",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "CodeNewRoman",
|
||||
"version": "2.0"
|
||||
},
|
||||
{
|
||||
"caskName": "comic-shanns-mono",
|
||||
"description": "The very typeface you\u2019ve been trained to recognize since childhood",
|
||||
"folderName": "ComicShannsMono",
|
||||
"licenseId": "MIT",
|
||||
"patchedName": "ComicShannsMono",
|
||||
"version": "1.3.1"
|
||||
},
|
||||
{
|
||||
"caskName": "commit-mono",
|
||||
"description": "An anonymous and neutral programming typeface",
|
||||
"folderName": "CommitMono",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "CommitMono",
|
||||
"version": "1.143"
|
||||
},
|
||||
{
|
||||
"caskName": "cousine",
|
||||
"description": "Similar to Courier New with better readablitiy, dotted zeros",
|
||||
"folderName": "Cousine",
|
||||
"licenseId": "Apache-2.0",
|
||||
"patchedName": "Cousine",
|
||||
"version": "1.211"
|
||||
},
|
||||
{
|
||||
"caskName": "d2coding",
|
||||
"description": "A coding font for Koreans. This is the variant with ligatures.",
|
||||
"folderName": "D2Coding",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "D2CodingLigature",
|
||||
"version": "1.3.2"
|
||||
},
|
||||
{
|
||||
"caskName": "daddy-time-mono",
|
||||
"description": "A monospaced font for programmers and other terminal groupies",
|
||||
"folderName": "DaddyTimeMono",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "DaddyTimeMono",
|
||||
"version": "1.2.3"
|
||||
},
|
||||
{
|
||||
"caskName": "dejavu-sans-mono",
|
||||
"description": "Dotted zero, based on the Bitstream Vera Fonts with a wider range of character",
|
||||
"folderName": "DejaVuSansMono",
|
||||
"licenseId": "Bitstream-Vera",
|
||||
"patchedName": "DejaVuSansM",
|
||||
"version": "2.37"
|
||||
},
|
||||
{
|
||||
"caskName": "droid-sans-mono",
|
||||
"description": "Good for small screens or font sizes",
|
||||
"folderName": "DroidSansMono",
|
||||
"licenseId": "Apache-2.0",
|
||||
"patchedName": "DroidSansM",
|
||||
"version": "1.00-113"
|
||||
},
|
||||
{
|
||||
"caskName": "envy-code-r",
|
||||
"description": "Fully-scalable monospaced font designed for programming and command prompts",
|
||||
"folderName": "EnvyCodeR",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "EnvyCodeR",
|
||||
"version": "0.79"
|
||||
},
|
||||
{
|
||||
"caskName": "fantasque-sans-mono",
|
||||
"description": "\"Wibbly-wobbly handwriting-like fuzziness\", takes some inspiration from Inconsolata and Monaco",
|
||||
"folderName": "FantasqueSansMono",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "FantasqueSansM",
|
||||
"version": "1.8.0"
|
||||
},
|
||||
{
|
||||
"caskName": "fira-code",
|
||||
"description": "Programming ligatures, extension of Fira Mono font, enlarged operators",
|
||||
"folderName": "FiraCode",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "FiraCode",
|
||||
"version": "6.2"
|
||||
},
|
||||
{
|
||||
"caskName": "fira-mono",
|
||||
"description": "Mozilla typeface, dotted zero",
|
||||
"folderName": "FiraMono",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "FiraMono",
|
||||
"version": "3.206"
|
||||
},
|
||||
{
|
||||
"caskName": "geist-mono",
|
||||
"description": "Monospaced typeface designed to be used in code editors, diagrams, terminals, and other textbased interfaces where code is represented",
|
||||
"folderName": "GeistMono",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "GeistMono",
|
||||
"version": "1.2.0 (1.3.0)"
|
||||
},
|
||||
{
|
||||
"caskName": "go-mono",
|
||||
"description": "Created specifically for the Go project, looks particularly clear for use with the Go language",
|
||||
"folderName": "Go-Mono",
|
||||
"licenseId": "BSD-3-Clause-Clear",
|
||||
"patchedName": "GoMono",
|
||||
"version": "2.010"
|
||||
},
|
||||
{
|
||||
"caskName": "gohufont",
|
||||
"description": "Bitmap font, tall capitals and ascenders, small serifs",
|
||||
"folderName": "Gohu",
|
||||
"licenseId": "WTFPL",
|
||||
"patchedName": "GohuFont",
|
||||
"version": "2.0"
|
||||
},
|
||||
{
|
||||
"caskName": "hack",
|
||||
"description": "Dotted zero, short descenders, expands upon work done for Bitstream Vera & DejaVu, legible at common sizes",
|
||||
"folderName": "Hack",
|
||||
"licenseId": "Bitstream-Vera AND MIT",
|
||||
"patchedName": "Hack",
|
||||
"version": "3.003"
|
||||
},
|
||||
{
|
||||
"caskName": "hasklug",
|
||||
"description": "Monospaced ligatures, makes composite glyphs (e.g. ->) more reabable, especially in Haskell",
|
||||
"folderName": "Hasklig",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "Hasklug",
|
||||
"version": "1.2"
|
||||
},
|
||||
{
|
||||
"caskName": "heavy-data",
|
||||
"description": "Novel and unique design, dotted zero",
|
||||
"folderName": "HeavyData",
|
||||
"licenseId": "LicenseRef-VicFieger",
|
||||
"patchedName": "HeavyData",
|
||||
"version": "1"
|
||||
},
|
||||
{
|
||||
"caskName": "hurmit",
|
||||
"description": "Symbols stand out from common text",
|
||||
"folderName": "Hermit",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "Hurmit",
|
||||
"version": "2.0"
|
||||
},
|
||||
{
|
||||
"caskName": "im-writing",
|
||||
"description": "A heavy modification of IBM's Plex font",
|
||||
"folderName": "iA-Writer",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "iMWriting",
|
||||
"version": "Dec 2018"
|
||||
},
|
||||
{
|
||||
"caskName": "inconsolata",
|
||||
"description": "Slashed zero, takes inspiration from many different fonts and glyphs, subtle curves in lowercase",
|
||||
"folderName": "Inconsolata",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "Inconsolata",
|
||||
"version": "3.000"
|
||||
},
|
||||
{
|
||||
"caskName": "inconsolata-go",
|
||||
"description": "Inconsolata with straight quotes",
|
||||
"folderName": "InconsolataGo",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "InconsolataGo",
|
||||
"version": "1.013"
|
||||
},
|
||||
{
|
||||
"caskName": "inconsolata-lgc",
|
||||
"description": "Inconsolata with added the Cyrillic alphabet",
|
||||
"folderName": "InconsolataLGC",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "Inconsolata LGC",
|
||||
"version": "1.5.2"
|
||||
},
|
||||
{
|
||||
"caskName": "intone-mono",
|
||||
"description": "Expressive monospaced font family that\u2019s built with clarity, legibility, and the needs of developers in mind",
|
||||
"folderName": "IntelOneMono",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "IntoneMono",
|
||||
"version": "1.3.0"
|
||||
},
|
||||
{
|
||||
"caskName": "iosevka",
|
||||
"description": "Narrow and horizontally tight characters, slashed zero",
|
||||
"folderName": "Iosevka",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "Iosevka",
|
||||
"version": "29.0.4"
|
||||
},
|
||||
{
|
||||
"caskName": "iosevka-term",
|
||||
"description": "A narrower variant focusing terminal uses: Arrows and geometric symbols will be narrow to follow typical terminal usages",
|
||||
"folderName": "IosevkaTerm",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "IosevkaTerm",
|
||||
"version": "29.0.4"
|
||||
},
|
||||
{
|
||||
"caskName": "iosevka-term-slab",
|
||||
"description": "Nice as Iosevka but with slab serifs",
|
||||
"folderName": "IosevkaTermSlab",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "IosevkaTermSlab",
|
||||
"version": "29.0.4"
|
||||
},
|
||||
{
|
||||
"caskName": "jetbrains-mono",
|
||||
"description": "JetBrains officially created font for developers",
|
||||
"folderName": "JetBrainsMono",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "JetBrainsMono",
|
||||
"version": "2.304"
|
||||
},
|
||||
{
|
||||
"caskName": "lekton",
|
||||
"description": "Very light and thin characters, sharp m's, `0` and `O` very similar",
|
||||
"folderName": "Lekton",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "Lekton",
|
||||
"version": "34"
|
||||
},
|
||||
{
|
||||
"caskName": "liberation",
|
||||
"description": "`0` and `O` very similar, very short tight descenders",
|
||||
"folderName": "LiberationMono",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "LiterationMono",
|
||||
"version": "2.1.5"
|
||||
},
|
||||
{
|
||||
"caskName": "lilex",
|
||||
"description": "Modern with ligatures",
|
||||
"folderName": "Lilex",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "Lilex",
|
||||
"version": "2.400"
|
||||
},
|
||||
{
|
||||
"caskName": "martian-mono",
|
||||
"description": "Free and open-source monospaced font from Evil Martians",
|
||||
"folderName": "MartianMono",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "MartianMono",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
{
|
||||
"caskName": "meslo-lg",
|
||||
"description": "Slashed zeros, customized version of Apple's Menlo",
|
||||
"folderName": "Meslo",
|
||||
"licenseId": "Apache-2.0",
|
||||
"patchedName": "MesloLG",
|
||||
"version": "1.21"
|
||||
},
|
||||
{
|
||||
"caskName": "monaspace",
|
||||
"description": "Five matching fonts all having 'texture healing' to improve legibility",
|
||||
"folderName": "Monaspace",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "Monaspice",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
{
|
||||
"caskName": "monofur",
|
||||
"description": "Dotted zeros, slightly exaggerated curvy characters, compact characters",
|
||||
"folderName": "Monofur",
|
||||
"licenseId": "LicenseRef-Monofur",
|
||||
"patchedName": "Monofur",
|
||||
"version": "1.0"
|
||||
},
|
||||
{
|
||||
"caskName": "monoid",
|
||||
"description": "Ligatures, distinguishable glyphs with short ascenders & descenders, large operators & punctuation",
|
||||
"folderName": "Monoid",
|
||||
"licenseId": "MIT OR OFL-1.1-no-RFN",
|
||||
"patchedName": "Monoid",
|
||||
"version": "0.61"
|
||||
},
|
||||
{
|
||||
"caskName": "mononoki",
|
||||
"description": "Keeps in mind differentiation of characters and resolution sizes",
|
||||
"folderName": "Mononoki",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "Mononoki",
|
||||
"version": "1.6"
|
||||
},
|
||||
{
|
||||
"caskName": "mplus",
|
||||
"description": "Multiple styles and weights, many glyph sets (e.g. Kana glyphs)",
|
||||
"folderName": "MPlus",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "M+",
|
||||
"version": "2023/09"
|
||||
},
|
||||
{
|
||||
"caskName": "noto",
|
||||
"description": "`0` and `O` very similar, characters are either very curvy or straight lined",
|
||||
"folderName": "Noto",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "Noto",
|
||||
"version": "div"
|
||||
},
|
||||
{
|
||||
"caskName": "open-dyslexic",
|
||||
"description": "Designed specifically to alleviate reading errors caused by dyslexia",
|
||||
"folderName": "OpenDyslexic",
|
||||
"licenseId": "Bitstream-Vera",
|
||||
"patchedName": "OpenDyslexic",
|
||||
"version": "2.001"
|
||||
},
|
||||
{
|
||||
"caskName": "overpass",
|
||||
"description": "An open source font family inspired by Highway Gothic",
|
||||
"folderName": "Overpass",
|
||||
"licenseId": "OFL-1.1-no-RFN or LGPL-2.1-only",
|
||||
"patchedName": "Overpass",
|
||||
"version": "3.0.5"
|
||||
},
|
||||
{
|
||||
"caskName": "profont",
|
||||
"description": "Looks best with anti-aliasing turned off, squared off character corners, vertically tight small `s`",
|
||||
"folderName": "ProFont",
|
||||
"licenseId": "MIT",
|
||||
"patchedName": "ProFont",
|
||||
"version": "2.3/2.2"
|
||||
},
|
||||
{
|
||||
"caskName": "proggy-clean-tt",
|
||||
"description": "Designed particularly for use at small point sizes",
|
||||
"folderName": "ProggyClean",
|
||||
"licenseId": "MIT",
|
||||
"patchedName": "ProggyClean",
|
||||
"version": "2004/04/15"
|
||||
},
|
||||
{
|
||||
"caskName": "recursive-mono",
|
||||
"description": "inspired by casual script signpainting, 4 variants",
|
||||
"folderName": "Recursive",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "RecMono",
|
||||
"version": "1.085"
|
||||
},
|
||||
{
|
||||
"caskName": "roboto-mono",
|
||||
"description": "Dashed zero, curved and straight character lines",
|
||||
"folderName": "RobotoMono",
|
||||
"licenseId": "Apache-2.0",
|
||||
"patchedName": "RobotoMono",
|
||||
"version": "3.0"
|
||||
},
|
||||
{
|
||||
"caskName": "shure-tech-mono",
|
||||
"description": "Dotted zeros, distinguishable 1 and l, curved and straight character lines",
|
||||
"folderName": "ShareTechMono",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "ShureTechMono",
|
||||
"version": "1.003"
|
||||
},
|
||||
{
|
||||
"caskName": "sauce-code-pro",
|
||||
"description": "Monospaced font family for user interface and coding environments",
|
||||
"folderName": "SourceCodePro",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "SauceCodePro",
|
||||
"version": "2.042"
|
||||
},
|
||||
{
|
||||
"caskName": "space-mono",
|
||||
"description": "Squarish character lines, dotted zero, aggressive parethesis",
|
||||
"folderName": "SpaceMono",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "SpaceMono",
|
||||
"version": "1.001"
|
||||
},
|
||||
{
|
||||
"caskName": "symbols-only",
|
||||
"description": "Just the Nerd Font Icons. I.e Symbol font only",
|
||||
"folderName": "NerdFontsSymbolsOnly",
|
||||
"licenseId": "MIT",
|
||||
"patchedName": "Symbols",
|
||||
"version": "latest"
|
||||
},
|
||||
{
|
||||
"caskName": "terminess-ttf",
|
||||
"description": "Squarish characters that are slightly askew",
|
||||
"folderName": "Terminus",
|
||||
"licenseId": "OFL-1.1-RFN",
|
||||
"patchedName": "Terminess",
|
||||
"version": "4.49.2"
|
||||
},
|
||||
{
|
||||
"caskName": "tinos",
|
||||
"description": "Some similarities to Times New Roman, designed by Steve Matteson, includes pan-European WGL character set",
|
||||
"folderName": "Tinos",
|
||||
"licenseId": "Apache-2.0",
|
||||
"patchedName": "Tinos",
|
||||
"version": "1.23"
|
||||
},
|
||||
{
|
||||
"caskName": "ubuntu",
|
||||
"description": "Specially created for Ubuntu",
|
||||
"folderName": "Ubuntu",
|
||||
"licenseId": "LicenseRef-UbuntuFont",
|
||||
"patchedName": "Ubuntu",
|
||||
"version": "0.83"
|
||||
},
|
||||
{
|
||||
"caskName": "ubuntu-mono",
|
||||
"description": "Dotted zeros, used the `n`, `o`, `H` & `O` Latin characters as a base for design",
|
||||
"folderName": "UbuntuMono",
|
||||
"licenseId": "LicenseRef-UbuntuFont",
|
||||
"patchedName": "UbuntuMono",
|
||||
"version": "0.80"
|
||||
},
|
||||
{
|
||||
"caskName": "ubuntu-sans",
|
||||
"description": "Refreshed version of Ubuntu and Ubuntu Mono fonts",
|
||||
"folderName": "UbuntuSans",
|
||||
"licenseId": "LicenseRef-UbuntuFont",
|
||||
"patchedName": "UbuntuSans",
|
||||
"version": "1.004"
|
||||
},
|
||||
{
|
||||
"caskName": "victor-mono",
|
||||
"description": "Clean, crisp and narrow, with a large x-height and clear punctuation",
|
||||
"folderName": "VictorMono",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "VictorMono",
|
||||
"version": "1.5.6"
|
||||
},
|
||||
{
|
||||
"caskName": "zed-mono",
|
||||
"description": "Zed Mono is a more rounded version of Iosevka",
|
||||
"folderName": "ZedMono",
|
||||
"licenseId": "OFL-1.1-no-RFN",
|
||||
"patchedName": "ZedMono",
|
||||
"version": "1.2.0"
|
||||
}
|
||||
]
|
4
pkgs/data/fonts/nerd-fonts/manifests/release.json
Normal file
4
pkgs/data/fonts/nerd-fonts/manifests/release.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"tag_name": "v3.2.1",
|
||||
"published_at": "2024-04-12Tbla"
|
||||
}
|
90
pkgs/data/fonts/nerd-fonts/update.py
Executable file
90
pkgs/data/fonts/nerd-fonts/update.py
Executable file
@ -0,0 +1,90 @@
|
||||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -p python3 -i python3
|
||||
import os
|
||||
import urllib.request as ureq
|
||||
import json
|
||||
|
||||
if not all(
|
||||
f"UPDATE_NIX_{v}" in os.environ
|
||||
for v in ["NAME", "PNAME", "OLD_VERSION", "ATTR_PATH"]
|
||||
) or not os.environ['UPDATE_NIX_ATTR_PATH'].startswith("nerd-fonts."):
|
||||
raise Exception(
|
||||
"Please don't run this script manually, only with:\n"
|
||||
"nix-shell maintainers/scripts/update.nix --argstr path nerd-fonts "
|
||||
"--argstr commit true"
|
||||
)
|
||||
|
||||
RELEASE_INFO_URL = "https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest"
|
||||
FONTS_INFO_URL_TEMPLATE = "https://raw.githubusercontent.com/ryanoasis/nerd-fonts/refs/tags/{}/bin/scripts/lib/fonts.json"
|
||||
SHA256_URL_TEMPLATE = "https://github.com/ryanoasis/nerd-fonts/releases/download/{}/SHA-256.txt"
|
||||
|
||||
RELEASE_INFO_FILENAME = "release.json"
|
||||
FONTS_INFO_FILENAME = "fonts.json"
|
||||
CHECKSUMS_FILENAME = "checksums.json"
|
||||
|
||||
def fetchjson(url):
|
||||
with ureq.urlopen(url) as r:
|
||||
return json.loads(r.read())
|
||||
|
||||
def storejson(path, obj):
|
||||
with open(path, "w", encoding="utf-8") as f:
|
||||
json.dump(obj, f, indent=2)
|
||||
# Needed to satisfy EditorConfig's rules
|
||||
f.write('\n')
|
||||
|
||||
def slicedict(d, ks):
|
||||
return {k: d[k] for k in ks}
|
||||
|
||||
os.chdir(os.path.join(os.path.dirname(os.path.abspath(__file__)), "manifests"))
|
||||
|
||||
release_info = slicedict(
|
||||
fetchjson(RELEASE_INFO_URL),
|
||||
["tag_name", "published_at"]
|
||||
)
|
||||
|
||||
tag_name = release_info["tag_name"]
|
||||
with open(RELEASE_INFO_FILENAME, "r", encoding="utf-8") as f:
|
||||
former_tag_name = json.load(f)["tag_name"]
|
||||
if tag_name == former_tag_name:
|
||||
raise Exception("no newer version available")
|
||||
# See: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#supported-features
|
||||
print(json.dumps(
|
||||
[
|
||||
{
|
||||
"attrPath": "nerd-fonts",
|
||||
"oldVersion": former_tag_name.removeprefix("v"),
|
||||
"newVersion": tag_name.removeprefix("v"),
|
||||
},
|
||||
],
|
||||
indent=2
|
||||
))
|
||||
|
||||
storejson(RELEASE_INFO_FILENAME, release_info)
|
||||
|
||||
storejson(
|
||||
FONTS_INFO_FILENAME,
|
||||
[
|
||||
slicedict(
|
||||
item,
|
||||
[
|
||||
"caskName",
|
||||
"description",
|
||||
"folderName",
|
||||
"licenseId",
|
||||
"patchedName",
|
||||
"version",
|
||||
]
|
||||
)
|
||||
for item in fetchjson(FONTS_INFO_URL_TEMPLATE.format(tag_name))["fonts"]
|
||||
],
|
||||
)
|
||||
|
||||
storejson(
|
||||
CHECKSUMS_FILENAME,
|
||||
{
|
||||
filename: sha256
|
||||
for row in ureq.urlopen(SHA256_URL_TEMPLATE.format(tag_name))
|
||||
for sha256, filename in [row.decode('utf-8').split()]
|
||||
if filename.endswith(".tar.xz")
|
||||
},
|
||||
)
|
@ -1,72 +0,0 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, lib
|
||||
# To select only certain fonts, put a list of strings to `fonts`: every key in
|
||||
# ./shas.nix is an optional font
|
||||
, fonts ? []
|
||||
# Whether to enable Windows font variants, their internal font name is limited
|
||||
# to 31 characters
|
||||
, enableWindowsFonts ? false
|
||||
}:
|
||||
|
||||
let
|
||||
# both of these files are generated via ./update.sh
|
||||
version = import ./version.nix;
|
||||
fontsShas = import ./shas.nix;
|
||||
knownFonts = builtins.attrNames fontsShas;
|
||||
selectedFonts = if (fonts == []) then
|
||||
knownFonts
|
||||
else
|
||||
let unknown = lib.subtractLists knownFonts fonts; in
|
||||
if (unknown != []) then
|
||||
throw "Unknown font(s): ${lib.concatStringsSep " " unknown}"
|
||||
else
|
||||
fonts
|
||||
;
|
||||
selectedFontsShas = lib.attrsets.genAttrs selectedFonts (
|
||||
fName:
|
||||
fontsShas."${fName}"
|
||||
);
|
||||
srcs = lib.attrsets.mapAttrsToList (
|
||||
fName:
|
||||
fSha:
|
||||
(fetchurl {
|
||||
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/${fName}.tar.xz";
|
||||
sha256 = fSha;
|
||||
})
|
||||
) selectedFontsShas;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
inherit version;
|
||||
inherit srcs;
|
||||
pname = "nerdfonts";
|
||||
sourceRoot = ".";
|
||||
buildPhase = ''
|
||||
echo "selected fonts are ${toString selectedFonts}"
|
||||
ls *.otf *.ttf
|
||||
'';
|
||||
installPhase = ''
|
||||
find -name \*.otf -exec mkdir -p $out/share/fonts/opentype/NerdFonts \; -exec mv {} $out/share/fonts/opentype/NerdFonts \;
|
||||
find -name \*.ttf -exec mkdir -p $out/share/fonts/truetype/NerdFonts \; -exec mv {} $out/share/fonts/truetype/NerdFonts \;
|
||||
${lib.optionalString (! enableWindowsFonts) ''
|
||||
rm -rfv $out/share/fonts/opentype/NerdFonts/*Windows\ Compatible.*
|
||||
rm -rfv $out/share/fonts/truetype/NerdFonts/*Windows\ Compatible.*
|
||||
''}
|
||||
'';
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts";
|
||||
longDescription = ''
|
||||
Nerd Fonts is a project that attempts to patch as many developer targeted
|
||||
and/or used fonts as possible. The patch is to specifically add a high
|
||||
number of additional glyphs from popular 'iconic fonts' such as Font
|
||||
Awesome, Devicons, Octicons, and others.
|
||||
'';
|
||||
homepage = "https://nerdfonts.com/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ doronbehar ];
|
||||
hydraPlatforms = []; # 'Output limit exceeded' on Hydra
|
||||
};
|
||||
})
|
@ -1,69 +0,0 @@
|
||||
{
|
||||
"0xProto" = "09q4ipl3vvav3jbs0s14fqmd2wk70mc7i8mmplpj20jwcicm05ng";
|
||||
"3270" = "0zcj5xhylyqxpwn6dzp28kh8xybhh4y9lva3smcqs7iklhbf8s31";
|
||||
"Agave" = "1xxylrjb0zbq3kj14fx5d3lpb7abl0br6mkj961i391qyqlx01y3";
|
||||
"AnonymousPro" = "1lq9wkf8c153jkjmhnddih12y9xd4gabbkgac0vx9j98hmy7yjqy";
|
||||
"Arimo" = "1f7zljmljrp1dxkrhkyz8zh9ddv7l7m9br6gaygzxr26bq0vrwr0";
|
||||
"AurulentSansMono" = "0wlwwgp1w7rqvqx66dkqwhz5flw75620fj9fb795hakpkjiya6yp";
|
||||
"BigBlueTerminal" = "115cxnll1iyj75f5wi7b7pi5hgfa3b5kbx269alm9183h284lb23";
|
||||
"BitstreamVeraSansMono" = "1s6jpg0vrdwgi9qyn0mbcy8r7h1lqw8z6q39wiin61szfn642a2k";
|
||||
"CascadiaCode" = "1sg6czl3km7yi70vdcyb0ff1xkq1p4nalj0yh164gan3psp9mxss";
|
||||
"CascadiaMono" = "0rrknf86kdwyjpnryp5870nmnq2sxjda8pgs93z23lh7hw758wln";
|
||||
"CodeNewRoman" = "0p1wkmpzcrxw8qv5lf9fwsxqpjglhwim83amf7i8mmxdx1drzlj5";
|
||||
"ComicShannsMono" = "1p35nmzl51mn2mk0g9fdcawvssv4v7bklxxmdx99357ihnlka26w";
|
||||
"CommitMono" = "0jjzi98i28s3z2x8v7rakcdhgdf7jxzagj8snrylw2mvwn7mlgqp";
|
||||
"Cousine" = "1ccq3sp8fqbi0njm9w2p6cf5r7avpan5fklwzpx4mknwbdqlrwdq";
|
||||
"D2Coding" = "1c0chgbsmzlgq0vinbcz7ydkdhnram8cif8zx8kkpha31abna5n0";
|
||||
"DaddyTimeMono" = "1nz4g26a4dx7ng5nv6bc4hg474inan1c00c86mdlmvl2vgmx6zbf";
|
||||
"DejaVuSansMono" = "12x18i15723hxc1l6ng92m77wycjk0d6r15j34n1zsww5r6xwjxr";
|
||||
"DroidSansMono" = "1mqd1qqbs9dxwmi98i4xw88c68l1bww1sqlsmxmn86368rjh14fk";
|
||||
"EnvyCodeR" = "197g4jaljcb1yncn9rvh17n077p7bq0v59lvb9vqkq3lms5lzjni";
|
||||
"FantasqueSansMono" = "079mk8xrri4r1d5k1w5fv1hb0hp3w499csirkd6yriss35sbhv9d";
|
||||
"FiraCode" = "1i1vw65f00n6vjinyqr1bq5ni5r6g8cjinrfl5zhlqm0gagv5x6y";
|
||||
"FiraMono" = "1i9bfxblx568wsjq7ks1kyyfn9k36i4r2an4n45mb46swc94n8n0";
|
||||
"GeistMono" = "0wvc9hqkh7ap3ysklcin8k72706l72p2wyqv3bg5brzcmwcpy90g";
|
||||
"Go-Mono" = "0j6rr0r7418f8a5bmxbagpmcf7bas2n53f0hg835zp2ikx9cx924";
|
||||
"Gohu" = "0h8hjiqs3f6xwn7g4wg12xim65ybw2546nlf5p9ip4ymr7x17dks";
|
||||
"Hack" = "1wxmd4jr4p11cfhzs5chyh649vps6sdz4bq28204npkd7wzh5fc9";
|
||||
"Hasklig" = "1nja4r8sn67g3gn85xhb1h7p1pi96wl0hpg5b5gyd1z5llbgzc2g";
|
||||
"HeavyData" = "1a3a1pixv97wlnai24zb8dhkzxb2llcarhjkfrgd4syhn37sdf7n";
|
||||
"Hermit" = "1bh18rzwma7gzrx3ybw8g2s9k5xv7wx8ybnyas3qaxb03fpjqm93";
|
||||
"iA-Writer" = "0vsppg62l35zhzlsa0fwczv09pk1nhrag9xhcaadipd962dv7c45";
|
||||
"IBMPlexMono" = "0hd04z17l2p21hij4a0gmwnlfxs7s8qqh08zf4pzqld10557gqlp";
|
||||
"Inconsolata" = "1xy3h05zy49h91k7fqk8934p1f776w46i0bh510addg12w8mm7rc";
|
||||
"InconsolataGo" = "0hcvh3s2rnnir03pszfmmwhbdsapx1b516phhjhb4wl0dqma9q39";
|
||||
"InconsolataLGC" = "0bfwhzbz422kfdv9ppr83cc2aqqdn7g49f73zipl4yp5636gi5ks";
|
||||
"IntelOneMono" = "0388390dlcprxhxxl57gy8rllwk8wsd92b5xwnqwb5f394gbc5m0";
|
||||
"Iosevka" = "0dzkcn277jxiqrrqkyigw6jgd4lp9411r28rkpkwx6js6px27q8v";
|
||||
"IosevkaTerm" = "1xccqkydkhmhq8akk23kkypqzcc2svyicxv9gblwzwbndjrfgmdm";
|
||||
"IosevkaTermSlab" = "1svig63li8mjj2dkgiawgb82gpk8vkrkhih5cp0a6174bh4gycii";
|
||||
"JetBrainsMono" = "01j0rkgrix7mdp9fx0y8zzk1kh40yfcp932p0r5y666aq4mq5y3c";
|
||||
"Lekton" = "00cm8ni3cnmgzwj1ypvpcy8gvnlz31la51j411dpsdqsclbcp0i2";
|
||||
"LiberationMono" = "1941pgw723a6my44g6idi56a88qvsi8lj3wl7slpr5l3pmfda2lx";
|
||||
"Lilex" = "0qz23h6a77i4n8nmhb7hc56mkiwn3pj1s6dbl2v53fvypwghswm2";
|
||||
"MartianMono" = "0zfcvi150yn274i41n66zr20hqgqb0r5v75q21bbgqvaysl4wj32";
|
||||
"Meslo" = "1sjrsr7i3diz4h7wkrl8va7b40g4m1432dz6bpbm2nmp89aszg8s";
|
||||
"Monaspace" = "0il36cm37pc6ndp96j32j0fqpqvwyv2xm3jr7d3zxwax1lcfilp5";
|
||||
"Monofur" = "10gzx2r5a5f5jl192c6cwsil5k57aslmryfnilkv4g8417xmn0zb";
|
||||
"Monoid" = "1fhsb326lc093ckrq2kz4vhr3ibrgp8y0mwa3qwdbapldxazz9f7";
|
||||
"Mononoki" = "18zp94dnv6kp8l58151dybjf2w1gi99nh1rw098hkrf52gfrfdpb";
|
||||
"MPlus" = "0x7yvpkn32x50y9zpdpjrp1gvwwp4fsmjbqbnfzy14xhi03p0q2w";
|
||||
"NerdFontsSymbolsOnly" = "0y4r1rid5sjd9ihi6nkwy0sja792aghg21bpl3ri029b9pifx8xp";
|
||||
"Noto" = "0vq9lgf4j6pi7pw3bfgfzkcdixnhikf4yys8fr0qql7mkwhj3rjb";
|
||||
"OpenDyslexic" = "1yl1fm4pfjvxq411m6f8nycqjnpnhkllmlx16wjrjfqpaf63mm4n";
|
||||
"Overpass" = "1plcn2qx2b08va65zagn1ybkh850157ii7x20nnrhp0h5f4rddzw";
|
||||
"ProFont" = "11c3shv09dssjbjwa44y64dwq7dxn3gs23bfgvhkv51vshsx0fzy";
|
||||
"ProggyClean" = "1l822wqrz7xmgnw535i9vl9gwjl4h037hi3xl0g4907kcdxwan0s";
|
||||
"Recursive" = "1fngqsl1shbfbb1wcx77di42g65lm9f5fcw93m8dcvdzk5lxpxz5";
|
||||
"RobotoMono" = "0g6yvz4vpfcylnshhyhwy5llz61n8m0a0vp4jgjhiir5svcd9krw";
|
||||
"ShareTechMono" = "0mxsywg4gns31yzh1256y7pkbh0m6n3rf8gbb55mxw219ngskkyv";
|
||||
"SourceCodePro" = "088vi947kavk1pkvbl68kv7nz84yvfkj725n2zn7ypq354kkm92n";
|
||||
"SpaceMono" = "0f4kcm4i3y11mpxb9anmn8759zpv3lvril4shp3d4mfc0k3dgfdn";
|
||||
"Terminus" = "04kzc594sb5vk8fd3ww9ip7jsy4vi6wmxdf6vzsvb2fgd98ck335";
|
||||
"Tinos" = "14c31qv3ik0in44k98zjn398cffwgq8z7d5lx7sk6iv12hikrd11";
|
||||
"Ubuntu" = "1bgk4hx26qn5ylsydsy9655isz05ir7154pv8dy4x5rpr144s9ba";
|
||||
"UbuntuMono" = "15kkgx6i4f7zn6fdaw2dqqw3hcpl3pi4cy4g5jx67af8qlhqarrb";
|
||||
"UbuntuSans" = "0jj4v198zshwhns5swrh02h2np3wgnv8lacn8b7jhmcd575cgy1y";
|
||||
"VictorMono" = "03rh7rc6a934sgd1bs7h7y1swqwbv3g7zi624k6hd8v1m3f0j6xa";
|
||||
"ZedMono" = "0yhb9fp7ahw8niki1njzk8pbl0iy53pgf7gx5yfc2ass9vjwky9d";
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p nix-prefetch jq
|
||||
|
||||
latest_release=$(curl --silent https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest)
|
||||
version=$(jq -r '.tag_name' <<<"$latest_release")
|
||||
|
||||
dirname="$(dirname "$0")"
|
||||
echo \""${version#v}"\" >"$dirname/version-new.nix"
|
||||
if diff -q "$dirname/version-new.nix" "$dirname/version.nix"; then
|
||||
echo No new version available, current: $version
|
||||
exit 0
|
||||
else
|
||||
echo Updated to version "$version"
|
||||
mv "$dirname/version-new.nix" "$dirname/version.nix"
|
||||
fi
|
||||
|
||||
printf '{\n' > "$dirname/shas.nix"
|
||||
|
||||
while
|
||||
read -r name
|
||||
read -r url
|
||||
do
|
||||
printf ' "%s" = "%s";\n' "${name%%.*}" "$(nix-prefetch-url "$url")" >>"$dirname/shas.nix"
|
||||
done < <(jq -r '.assets[] | select(.name | test("xz")) | .name, .browser_download_url' <<<"$latest_release")
|
||||
|
||||
printf '}\n' >> "$dirname/shas.nix"
|
@ -1 +0,0 @@
|
||||
"3.2.1"
|
@ -372,6 +372,7 @@ mapAliases {
|
||||
fileschanged = throw "'fileschanged' has been removed as it is unmaintained upstream"; # Added 2024-04-19
|
||||
finger_bsd = bsd-finger;
|
||||
fingerd_bsd = bsd-fingerd;
|
||||
fira-code-nerdfont = lib.warn "fira-code-nerdfont is redundant. Use nerd-fonts.fira-code instead." nerd-fonts.fira-code; # Added 2024-11-10
|
||||
firefox-esr-115 = throw "The Firefox 115 ESR series has reached its end of life. Upgrade to `firefox-esr` or `firefox-esr-128` instead.";
|
||||
firefox-esr-115-unwrapped = throw "The Firefox 115 ESR series has reached its end of life. Upgrade to `firefox-esr-unwrapped` or `firefox-esr-128-unwrapped` instead.";
|
||||
firefox-wayland = firefox; # Added 2022-11-15
|
||||
@ -535,6 +536,7 @@ mapAliases {
|
||||
imagemagick7 = throw "'imagemagick7' has been renamed to/replaced by 'imagemagick'"; # Converted to throw 2024-10-17
|
||||
imagemagick7_light = throw "'imagemagick7_light' has been renamed to/replaced by 'imagemagick_light'"; # Converted to throw 2024-10-17
|
||||
immersed-vr = lib.warn "'immersed-vr' has been renamed to 'immersed'" immersed; # Added 2024-08-11
|
||||
inconsolata-nerdfont = lib.warn "inconsolata-nerdfont is redundant. Use nerd-fonts.inconsolata instead." nerd-fonts.inconsolata; # Added 2024-11-10
|
||||
incrtcl = tclPackages.incrtcl; # Added 2024-10-02
|
||||
input-utils = throw "The input-utils package was dropped since it was unmaintained."; # Added 2024-06-21
|
||||
index-fm = libsForQt5.mauiPackages.index; # added 2022-05-17
|
||||
@ -840,6 +842,7 @@ mapAliases {
|
||||
nextcloud27Packages = throw "Nextcloud27 is EOL!"; # Added 2024-06-25
|
||||
nagiosPluginsOfficial = monitoring-plugins;
|
||||
neochat = libsForQt5.kdeGear.neochat; # added 2022-05-10
|
||||
nerdfonts = throw "nerdfonts has been separated into individual font packages under the namespace nerd-fonts"; # Added 2024-11-09
|
||||
newlibCross = newlib; # Added 2024-09-06
|
||||
newlib-nanoCross = newlib-nano; # Added 2024-09-06
|
||||
nix-direnv-flakes = nix-direnv;
|
||||
@ -1212,6 +1215,7 @@ mapAliases {
|
||||
teck-programmer = throw "teck-programmer was removed because it was broken and unmaintained"; # added 2024-08-23
|
||||
teleport_13 = throw "teleport 13 has been removed as it is EOL. Please upgrade to Teleport 14 or later"; # Added 2024-05-26
|
||||
teleport_14 = throw "teleport 14 has been removed as it is EOL. Please upgrade to Teleport 15 or later"; # Added 2024-10-18
|
||||
terminus-nerdfont = lib.warn "terminus-nerdfont is redundant. Use nerd-fonts.terminess-ttf instead." nerd-fonts.terminess-ttf; # Added 2024-11-10
|
||||
temurin-bin-20 = throw "Temurin 20 has been removed as it has reached its end of life"; # Added 2024-08-01
|
||||
temurin-jre-bin-20 = throw "Temurin 20 has been removed as it has reached its end of life"; # Added 2024-08-01
|
||||
temurin-bin-19 = throw "Temurin 19 has been removed as it has reached its end of life"; # Added 2024-08-01
|
||||
|
@ -4494,7 +4494,7 @@ with pkgs;
|
||||
|
||||
navilu-font = callPackage ../data/fonts/navilu { stdenv = stdenvNoCC; };
|
||||
|
||||
nerdfonts = callPackage ../data/fonts/nerdfonts { };
|
||||
nerd-fonts = recurseIntoAttrs (callPackage ../data/fonts/nerd-fonts { });
|
||||
|
||||
netcdf-mpi = netcdf.override {
|
||||
hdf5 = hdf5-mpi.override { usev110Api = true; };
|
||||
@ -13014,9 +13014,6 @@ with pkgs;
|
||||
|
||||
fira-code = callPackage ../data/fonts/fira-code { };
|
||||
fira-code-symbols = callPackage ../data/fonts/fira-code/symbols.nix { };
|
||||
fira-code-nerdfont = nerdfonts.override {
|
||||
fonts = [ "FiraCode" ];
|
||||
};
|
||||
|
||||
flat-remix-icon-theme = callPackage ../data/icons/flat-remix-icon-theme {
|
||||
inherit (plasma5Packages) breeze-icons;
|
||||
@ -13067,10 +13064,6 @@ with pkgs;
|
||||
|
||||
inconsolata-lgc = callPackage ../data/fonts/inconsolata/lgc.nix { };
|
||||
|
||||
inconsolata-nerdfont = nerdfonts.override {
|
||||
fonts = [ "Inconsolata" ];
|
||||
};
|
||||
|
||||
input-fonts = callPackage ../data/fonts/input-fonts { };
|
||||
|
||||
iosevka = callPackage ../data/fonts/iosevka { };
|
||||
@ -13232,10 +13225,6 @@ with pkgs;
|
||||
inherit (libsForQt5) breeze-icons;
|
||||
};
|
||||
|
||||
terminus-nerdfont = nerdfonts.override {
|
||||
fonts = [ "Terminus" ];
|
||||
};
|
||||
|
||||
tex-gyre = callPackages ../data/fonts/tex-gyre { };
|
||||
|
||||
tex-gyre-math = callPackages ../data/fonts/tex-gyre-math { };
|
||||
|
Loading…
Reference in New Issue
Block a user