pkgs: add monocraft-nerdfonts

This commit is contained in:
Harsh Shandilya 2023-02-06 03:59:51 +05:30
parent f29a2c4f1f
commit fabcd17a1a
No known key found for this signature in database
3 changed files with 30 additions and 0 deletions

View File

@ -18,6 +18,7 @@ Included packages:
- [hyperlink]: Very fast link checker for CI
- [katbin] : A CLI for [katb.in]
- [linkleaner] : Telegram bot to fix social media link previews
- [monocraft-nerdfonts] : A monospaced programming font inspired by the Minecraft typeface
- [pidcat] : Fork of [JakeWharton's pidcat] with Python3 support and some other fixes
- [topgrade] : The original [topgrade] package from before it was forked by the community and started dwindling in quality
- [twt] : Multipurpose tool to extract metadata from a user's tweets
@ -40,6 +41,7 @@ Included packages:
[katbin]: https://github.com/SphericalKat/katbin-cli
[katb.in]: https://katb.in
[linkleaner]: https://msfjarvis.dev/g/linkleaner
[monocraft-nerdfonts]: https://github.com/IdreesInc/Monocraft
[pidcat]: https://msfjarvis.dev/g/pidcat
[JakeWharton's pidcat]: https://github.com/JakeWharton/pidcat
[topgrade]: https://github.com/r-darwish/topgrade

View File

@ -15,6 +15,7 @@ in {
hyperlink = callPackage ./hyperlink {inherit pkgs;};
katbin = callPackage ./katbin {inherit pkgs;};
linkleaner = callPackage ./linkleaner {inherit pkgs;};
monocraft-nerdfonts = callPackage ./monocraft-nerdfonts {inherit pkgs;};
pidcat = callPackage ./pidcat {inherit pkgs;};
topgrade-og = callPackage ./topgrade-og {inherit pkgs;};
twt = callPackage ./twt {inherit pkgs;};

View File

@ -0,0 +1,27 @@
{
pkgs,
lib,
}:
pkgs.stdenv.mkDerivation rec {
pname = "monocraft-nerdfonts";
version = "2.4";
src = pkgs.fetchurl {
url = "https://github.com/IdreesInc/Monocraft/releases/download/v${version}/Monocraft-nerd-fonts-patched.ttf";
sha256 = "sha256-QxMp8UwcRjWySNHWoNeX2sX9teZ4+tCFj+DG41azsXw=";
};
dontBuild = true;
dontUnpack = true;
installPhase = ''
mkdir -p $out/share/fonts/truetype/
cat $src > $out/share/fonts/truetype/Monocraft-nerdfonts.ttf
'';
meta = with lib; {
description = "A monospaced programming font inspired by the Minecraft typeface";
homepage = "https://github.com/IdreesInc/Monocraft";
license = licenses.ofl;
platforms = platforms.all;
};
}