Move main build logic from flake.nix to default.nix
Remove Iosevka Etoile
This commit is contained in:
parent
688e5bebf9
commit
4eaf3d280f
37
default.nix
Normal file
37
default.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
iosevka,
|
||||||
|
nerd-font-patcher,
|
||||||
|
}: let
|
||||||
|
customBuildPlan = import ./custom-build-plan.nix;
|
||||||
|
in {
|
||||||
|
iosevka-custom-aile = iosevka.override {
|
||||||
|
set = "aile";
|
||||||
|
privateBuildPlan = {
|
||||||
|
inherit (customBuildPlan) noCvSs exportGlyphNames variants weights;
|
||||||
|
family = "Iosevka Custom Aile";
|
||||||
|
spacing = "quasi-proportional";
|
||||||
|
serifs = "sans";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
iosevka-custom-nerdfont = let
|
||||||
|
monospace = iosevka.override {
|
||||||
|
set = "custom";
|
||||||
|
privateBuildPlan = {
|
||||||
|
inherit (customBuildPlan) noCvSs exportGlyphNames variants weights;
|
||||||
|
family = "Iosevka Custom";
|
||||||
|
spacing = "normal";
|
||||||
|
serifs = "sans";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "${monospace.name}-nerd-font-patched";
|
||||||
|
src = monospace;
|
||||||
|
nativeBuildInputs = [nerd-font-patcher];
|
||||||
|
buildPhase = ''
|
||||||
|
find \( -name \*.ttf -o -name \*.otf \) -execdir nerd-font-patcher -c {} \;
|
||||||
|
'';
|
||||||
|
installPhase = "cp -a . $out";
|
||||||
|
};
|
||||||
|
}
|
43
flake.nix
43
flake.nix
|
@ -16,52 +16,11 @@
|
||||||
}: let
|
}: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {inherit system;};
|
pkgs = import nixpkgs {inherit system;};
|
||||||
customBuildPlan = import ./custom-build-plan.nix;
|
|
||||||
in {
|
in {
|
||||||
names = {
|
names = {
|
||||||
iosevka-custom-aile = "Iosevka Custom Aile";
|
iosevka-custom-aile = "Iosevka Custom Aile";
|
||||||
iosevka-custom-etoile = "Iosevka Custom Etoile";
|
|
||||||
iosevka-custom-nerdfont = "IosevkaCustomNerdFont";
|
iosevka-custom-nerdfont = "IosevkaCustomNerdFont";
|
||||||
};
|
};
|
||||||
packages.${system} = {
|
packages.${system} = pkgs.callPackage ./default.nix;
|
||||||
iosevka-custom-aile = pkgs.iosevka.override {
|
|
||||||
set = "aile";
|
|
||||||
privateBuildPlan = {
|
|
||||||
inherit (customBuildPlan) noCvSs exportGlyphNames variants weights;
|
|
||||||
family = "Iosevka Custom Aile";
|
|
||||||
spacing = "quasi-proportional";
|
|
||||||
serifs = "sans";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
iosevka-custom-etoile = pkgs.iosevka.override {
|
|
||||||
set = "etoile";
|
|
||||||
privateBuildPlan = {
|
|
||||||
inherit (customBuildPlan) noCvSs exportGlyphNames variants weights;
|
|
||||||
family = "Iosevka Custom Etoile";
|
|
||||||
spacing = "quasi-proportional";
|
|
||||||
serifs = "slab";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
iosevka-custom-nerdfont = let
|
|
||||||
monospace = pkgs.iosevka.override {
|
|
||||||
set = "custom";
|
|
||||||
privateBuildPlan = {
|
|
||||||
inherit (customBuildPlan) noCvSs exportGlyphNames variants weights;
|
|
||||||
family = "Iosevka Custom";
|
|
||||||
spacing = "normal";
|
|
||||||
serifs = "sans";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
pkgs.stdenv.mkDerivation {
|
|
||||||
name = "${monospace.name}-nerd-font-patched";
|
|
||||||
src = monospace;
|
|
||||||
nativeBuildInputs = [pkgs.nerd-font-patcher];
|
|
||||||
buildPhase = ''
|
|
||||||
find \( -name \*.ttf -o -name \*.otf \) -execdir nerd-font-patcher -c {} \;
|
|
||||||
'';
|
|
||||||
installPhase = "cp -a . $out";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue