WIP font
This commit is contained in:
parent
69b372d036
commit
a225e6d55d
|
@ -1,11 +1,11 @@
|
||||||
# Custom packages, that can be defined similarly to ones from nixpkgs
|
# Custom packages, that can be defined similarly to ones from nixpkgs
|
||||||
# You can build them using 'nix build .#example'
|
# You can build them using 'nix build .#example'
|
||||||
{pkgs, ...}: rec {
|
{pkgs, ...}: rec {
|
||||||
iosevka-lyte-term = pkgs.callPackage ./iosevka-lyte-term.nix {inherit (pkgs) iosevka;};
|
iosevka-lyteterm = pkgs.callPackage ./iosevka-lyteterm.nix {inherit (pkgs) iosevka;};
|
||||||
iosevka-lyte-term-min = pkgs.callPackage ./iosevka-lyte-term-min.nix {
|
iosevka-lyteterm-min = pkgs.callPackage ./iosevka-lyteterm-min.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inherit (pkgs) brotli;
|
inherit (pkgs) brotli;
|
||||||
inherit iosevka-lyte-term;
|
inherit iosevka-lyteterm;
|
||||||
fonttools = pkgs.python311Packages.fonttools;
|
fonttools = pkgs.python311Packages.fonttools;
|
||||||
};
|
};
|
||||||
# example = pkgs.callPackage ./example { };
|
# example = pkgs.callPackage ./example { };
|
||||||
|
|
|
@ -2,15 +2,15 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
fonttools,
|
fonttools,
|
||||||
brotli,
|
brotli,
|
||||||
iosevka-lyte-term,
|
iosevka-lyteterm,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
BASE_FONTS = "${iosevka-lyte-term}/share/fonts/truetype";
|
BASE_FONTS = "${iosevka-lyteterm}/share/fonts/truetype";
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
pkgs.stdenvNoCC.mkDerivation {
|
||||||
inherit BASE_FONTS;
|
inherit BASE_FONTS;
|
||||||
pname = "iosevka-lyte-term-min";
|
pname = "iosevka-lyteterm-min";
|
||||||
version = iosevka-lyte-term.version;
|
version = iosevka-lyteterm.version;
|
||||||
# do I need to include makesubset.bash and subset-glyphs.txt?
|
# do I need to include makesubset.bash and subset-glyphs.txt?
|
||||||
buildInputs = [fonttools brotli];
|
buildInputs = [fonttools brotli];
|
||||||
srcs = [
|
srcs = [
|
|
@ -1,7 +1,7 @@
|
||||||
{iosevka, ...}:
|
{iosevka, ...}:
|
||||||
(iosevka.overrideAttrs
|
(iosevka.overrideAttrs
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
pname = "iosevka-lyte-term";
|
pname = "iosevka-lyteterm";
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
|
@ -14,9 +14,11 @@
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
fontdir="$out/share/fonts"
|
fontdir="$out/share/fonts"
|
||||||
|
ls -la "$pname"
|
||||||
|
ls -la "$pname/ttf"/*
|
||||||
install -d "$fontdir"
|
install -d "$fontdir"
|
||||||
install "dist/$pname/ttf"/* "$fontdir/truetype"
|
install "$pname/ttf"/* "$fontdir/truetype"
|
||||||
install "dist/$pname/woff2"/* "$fontdir/woff2"
|
install "$pname/woff2"/* "$fontdir/woff2"
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
}))
|
}))
|
Loading…
Reference in a new issue