Font incoming
This commit is contained in:
parent
1286e23914
commit
afe1bb4809
3 changed files with 26 additions and 8 deletions
|
@ -17,7 +17,11 @@
|
|||
};
|
||||
|
||||
systemPackages = with pkgs; [
|
||||
marksman
|
||||
markdown-oxide
|
||||
gnupg
|
||||
pinentry-tty
|
||||
pinentry-curses
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{iosevka, ...}: let
|
||||
set = "LyteTerm";
|
||||
in
|
||||
(iosevka.override {
|
||||
in ((iosevka.override {
|
||||
inherit set;
|
||||
|
||||
privateBuildPlan = ''
|
||||
|
@ -125,7 +124,22 @@ in
|
|||
'';
|
||||
})
|
||||
.overrideAttrs {
|
||||
postBuild = ''
|
||||
buildPhase = ''
|
||||
export HOME=$TMPDIR
|
||||
runHook preBuild
|
||||
npm run build --no-update-notifier --targets ttf::$pname -- --jCmd=$NIX_BUILD_CORES --verbose=9
|
||||
npm run build --no-update-notifier --targets woff2::$pname -- --jCmd=$NIX_BUILD_CORES --verbose=9
|
||||
runHook postBuild
|
||||
'';
|
||||
}
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
ttfontdir="$out/share/fonts/truetype"
|
||||
wfontdir="$out/share/fonts/woff2"
|
||||
install -d "$ttfontdir"
|
||||
install -d "$wfontdir"
|
||||
install "dist/$pname/TTF"/* "$ttfontdir"
|
||||
install "dist/$pname/WOFF2"/* "$wfontdir"
|
||||
runHook postInstall
|
||||
'';
|
||||
})
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
pkgs,
|
||||
parallel,
|
||||
python311Packages,
|
||||
iosevka-lyteterm-raw,
|
||||
iosevkaLyteTerm,
|
||||
...
|
||||
}: let
|
||||
BASE_FONTS = "${iosevka-lyteterm-raw}/iosevka-lyteterm";
|
||||
BASE_FONTS = "${iosevkaLyteTerm}";
|
||||
in
|
||||
pkgs.stdenvNoCC.mkDerivation {
|
||||
inherit BASE_FONTS;
|
||||
pname = "iosevka-lyteterm-webmin";
|
||||
version = iosevka-lyteterm-raw.version;
|
||||
pname = "iosevkaLyteTermWebMin";
|
||||
version = iosevkaLyteTerm.version;
|
||||
buildInputs = [parallel] ++ (with python311Packages; [fonttools brotli]);
|
||||
PYTHONPATH = pkgs.python3.withPackages (pp: with pp; [brotli]);
|
||||
srcs = [
|
||||
|
|
Loading…
Reference in a new issue