sax2 nerdfont
This commit is contained in:
parent
78bdf0a511
commit
9042ed10af
|
@ -60,5 +60,7 @@
|
|||
};
|
||||
|
||||
keyboardLayouts.fox = ./shared/fox.xkb;
|
||||
|
||||
fonts.sax2nf = import ./shared/sax2nf.nix { pkgs = nixpkgs.legacyPackages.x86_64-linux; };
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, cornelis, cornelis-vim, agda, ... }:
|
||||
let username = "rachel";
|
||||
homeDir = "/home/${username}";
|
||||
SAX2 = import ../shared/sax2.nix { inherit pkgs; };
|
||||
SAX2NF = import ../shared/sax2nf.nix { inherit pkgs; };
|
||||
hpkgs = pkgs.haskellPackages;
|
||||
hls_wrapper = pkgs.writeScript "hls" ''
|
||||
export PATH="${hpkgs.haskell-language-server}/bin:$PATH"
|
||||
|
@ -64,7 +64,7 @@ in
|
|||
obs-studio
|
||||
file
|
||||
gimp
|
||||
SAX2
|
||||
SAX2NF
|
||||
twemoji-color-font
|
||||
bat
|
||||
steam
|
||||
|
@ -327,7 +327,7 @@ in
|
|||
draw_bold_text_with_bright_colors = false;
|
||||
scrolling.history = 0;
|
||||
font = {
|
||||
normal.family = "SAX2";
|
||||
normal.family = "SAX2 Nerd Font";
|
||||
size = 11;
|
||||
};
|
||||
colors = {
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
pkgs.fetchurl {
|
||||
name = "SAX2";
|
||||
url = "https://abrudz.github.io/SAX2/SAX2.ttf";
|
||||
sha256 = "sha256-DgvDWXO2fnKZNu9EvQOq8GNMTU3PUdp85+/0ZHdRXZc=";
|
||||
|
||||
recursiveHash = true;
|
||||
|
||||
downloadToTemp = true;
|
||||
postFetch = ''
|
||||
mkdir -p "$out/share/fonts/truetype"
|
||||
mv "$downloadedFile" "$out/share/fonts/truetype/SAX2.ttf"
|
||||
'';
|
||||
}
|
24
shared/sax2nf.nix
Normal file
24
shared/sax2nf.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, ... }:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "SAX2";
|
||||
|
||||
sax2 = (pkgs.fetchurl {
|
||||
url = "https://abrudz.github.io/SAX2/SAX2.ttf";
|
||||
sha256 = "sha256-t7Se4Hkojznrret/gb1y1uVnecENTuKtQv11ygafMPY=";
|
||||
});
|
||||
|
||||
patcher = (pkgs.fetchzip {
|
||||
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/FontPatcher.zip";
|
||||
sha256 = "sha256-ZJpF/Q5lfcW3srb2NbJk+/QEuwaFjdzboa+rl9L7GGE=";
|
||||
stripRoot = false;
|
||||
});
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ pkgs.fontforge (pkgs.python3.withPackages (p: [ p.fontforge ])) ];
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
python3 -OO $patcher/font-patcher --complete --careful --custom ${pkgs.fira-code}/share/fonts/truetype/FiraCode-VF.ttf -out $out/share/fonts/truetype $sax2
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user