mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
feat: manage ryan-mono with hm
This commit is contained in:
parent
e0b8313df9
commit
0938aa162e
3 changed files with 51 additions and 1 deletions
45
overlays/ryan-mono-bin.nix
Normal file
45
overlays/ryan-mono-bin.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
(_: prev: let
|
||||
version = "2023.07.25";
|
||||
|
||||
mkFontVariant = {
|
||||
variant,
|
||||
sha256,
|
||||
}:
|
||||
prev.callPackage ({
|
||||
lib,
|
||||
fetchzip,
|
||||
}:
|
||||
fetchzip rec {
|
||||
pname = variant;
|
||||
inherit version;
|
||||
|
||||
url = "https://github.com/ryanccn/ryan-mono/releases/download/${version}/${variant}.zip";
|
||||
stripRoot = false;
|
||||
|
||||
postFetch = ''
|
||||
postDir="$TMPDIR/post"
|
||||
mkdir -p $postDir
|
||||
mv $out/* $postDir
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
mv $postDir/*.ttf $out/share/fonts/truetype
|
||||
'';
|
||||
|
||||
inherit sha256;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ryanccn/ryan-mono";
|
||||
description = "Iosevka with customizations and Nerd Font patches";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}) {};
|
||||
in {
|
||||
ryan-mono-bin = mkFontVariant {
|
||||
variant = "ryan-mono";
|
||||
sha256 = "sha256-u8Ex7PgPxQVQt4VSQMsvpcO2g3Ma/75NAxIn3tATf5w=";
|
||||
};
|
||||
|
||||
ryan-term-bin = mkFontVariant {
|
||||
variant = "ryan-term";
|
||||
sha256 = "sha256-VmgmZFIPD7mLl1ATR1nlQN+qzFHXkopj8XZg97VgtlU=";
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue