feat(font): add apl386

This commit is contained in:
buffet 2023-03-06 13:24:11 +01:00
parent 3ea7f8f494
commit b1493bcc49
5 changed files with 54 additions and 1 deletions

View file

@ -23,6 +23,7 @@ in {
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [
(nerdfonts.override {fonts = ["Go-Mono"];}) (nerdfonts.override {fonts = ["Go-Mono"];})
apl386
dejavu_fonts dejavu_fonts
noto-fonts noto-fonts
]; ];

View file

@ -40,7 +40,11 @@
nixosConfigurations.fanya = nixpkgs.lib.nixosSystem { nixosConfigurations.fanya = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = args; specialArgs = args;
modules = [./fanya.nix]; modules = [
./fanya.nix
(_: {nixpkgs.overlays = [(import ./overlay)];})
];
}; };
}; };
} }

View file

@ -0,0 +1,32 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation {
pname = "apl386";
version = "2022-03-07";
src = fetchFromGitHub {
owner = "abrudz";
repo = "APL386";
rev = "6332c9dbb588946a0e8c9d7984dd0c003eeea266";
sha256 = "sha256-oHk4e7NRgAjGtZzQmZToYz7wCZETaj7/yRwZMeeYF2M=";
};
installPhase = ''
runHook preInstall
install -Dm644 APL386.ttf -t $out/share/fonts/apl386
runHook postInstall
'';
meta = with lib; {
description = "APL385 Unicode font evolved ";
homepage = "https://github.com/abrudz/APL386";
license = licenses.unlicense;
maintainers = with maintainers; [buffet];
platforms = platforms.all;
};
}

3
overlay/default.nix Normal file
View file

@ -0,0 +1,3 @@
self: super: {
apl386 = super.callPackage ./apl386 {};
}

13
programs/sbcl.nix Normal file
View file

@ -0,0 +1,13 @@
{pkgs, ...}: {
home-manager.users.buffet = {
home = {
packages = with pkgs; [
sbcl
];
file.".config/common-lisp/source-registry.conf.d/lisp.conf".text = ''
(:tree "/home/buffet/proj")
'';
};
};
}