This commit is contained in:
parent
4f36c42b22
commit
ad3ded339f
11 changed files with 103 additions and 73 deletions
24
pkgs/custom.nix
Normal file
24
pkgs/custom.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
t,
|
||||
dumpasm,
|
||||
jujutsu,
|
||||
pipethon,
|
||||
niri-unstable,
|
||||
raw-data,
|
||||
p1n3appl3,
|
||||
pkgs,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
inherit (pkgs) system;
|
||||
in
|
||||
{
|
||||
t = t.packages.${system}.default;
|
||||
inherit (dumpasm.packages.${system}) dumpasm;
|
||||
inherit (jujutsu.packages.${system}) jujutsu;
|
||||
inherit (niri-unstable.packages.${system}) niri;
|
||||
pipethon = pipethon.packages.${system}.python;
|
||||
raw-data = raw-data.packages.${system}.default;
|
||||
p1n3appl3 = p1n3appl3.packages.${system};
|
||||
}
|
||||
// (import ./maple.nix inputs)
|
||||
29
pkgs/maple.nix
Normal file
29
pkgs/maple.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
hashes = {
|
||||
"MapleMono-TTF" = "sha256-xKGw8fYpcBj0PNqEqz0VKIFebQc9QcIXmLtiVessHtM=";
|
||||
"MapleMono-NF-unhinted" = "sha256-1H7w/Ky10TG3rAS7tNAnpWy30xYlhT7MdxLNCQraiTg=";
|
||||
"MapleMono-NF-CN-unhinted" = "sha256-Zp4C8JJrCjGLGa1Il1J5RaqpFwu7hO0AETU6IDqoSX8=";
|
||||
};
|
||||
in
|
||||
rec {
|
||||
maple-mono = pkgs.lib.mapAttrs (
|
||||
_: maple-pkg:
|
||||
maple-pkg.overrideAttrs (
|
||||
prev: _: {
|
||||
version = "1.0.1+custom";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/jdonszelmann/Maple-font/releases/download/v1.0.1/${prev.pname}.zip";
|
||||
hash = hashes.${prev.pname};
|
||||
};
|
||||
}
|
||||
)
|
||||
) pkgs.maple-mono;
|
||||
maple-fonts-pack = [
|
||||
maple-mono.truetype
|
||||
# Maple Mono NF (Ligature unhinted)
|
||||
maple-mono.NF-unhinted
|
||||
# Maple Mono NF CN (Ligature unhinted)
|
||||
maple-mono.NF-CN-unhinted
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue