Move main build logic from flake.nix to default.nix

Remove Iosevka Etoile
This commit is contained in:
Evie Litherland-Smith 2024-03-16 11:26:48 +00:00
parent 688e5bebf9
commit 4eaf3d280f
2 changed files with 38 additions and 42 deletions

37
default.nix Normal file
View 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";
};
}

View file

@ -16,52 +16,11 @@
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {inherit system;};
customBuildPlan = import ./custom-build-plan.nix;
in {
names = {
iosevka-custom-aile = "Iosevka Custom Aile";
iosevka-custom-etoile = "Iosevka Custom Etoile";
iosevka-custom-nerdfont = "IosevkaCustomNerdFont";
};
packages.${system} = {
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";
};
};
packages.${system} = pkgs.callPackage ./default.nix;
};
}