mirror of
https://github.com/ryanccn/flake.git
synced 2026-01-27 04:06:28 +01:00
refactor: use snowfall
This commit is contained in:
parent
bb39b10e1f
commit
de8503d9a6
34 changed files with 181 additions and 194 deletions
45
overlays/ryan-mono-bin/default.nix
Normal file
45
overlays/ryan-mono-bin/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
_: (_: prev: let
|
||||
version = "2023.11.26";
|
||||
|
||||
mkFontVariant = {
|
||||
variant,
|
||||
hash,
|
||||
}:
|
||||
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 hash;
|
||||
|
||||
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";
|
||||
hash = "sha256-hA9Z1SOD9Ij1sPSyHXg9SUMPuJqKnocYfXwCTMAgJJU=";
|
||||
};
|
||||
|
||||
ryan-term-bin = mkFontVariant {
|
||||
variant = "ryan-term";
|
||||
hash = "sha256-j/1wvyN60m7SlUV0c6tk2jgj53EEgWEJMcCOvbrAkVI=";
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue