iosevka: 3.7.1 -> 4.5.0, revise build plan system
This commit is contained in:
parent
0f3b7ea1dd
commit
21a6759463
@ -1,31 +1,51 @@
|
|||||||
{ stdenv, lib, pkgs, fetchFromGitHub, nodejs, nodePackages, remarshal
|
{ stdenv, lib, pkgs, fetchFromGitHub, nodejs, nodePackages, remarshal
|
||||||
, ttfautohint-nox
|
, ttfautohint-nox
|
||||||
|
# Custom font set options.
|
||||||
|
# See https://typeof.net/Iosevka/customizer
|
||||||
|
# Can be a raw TOML string, or a Nix attrset.
|
||||||
|
|
||||||
# Custom font set options.
|
# Ex:
|
||||||
# See https://github.com/be5invis/Iosevka#build-your-own-style
|
# privateBuildPlan = ''
|
||||||
# Ex:
|
# [buildPlans.iosevka-custom]
|
||||||
# privateBuildPlan = {
|
# family = "Iosevka Custom"
|
||||||
# family = "Iosevka Expanded";
|
# spacing = "normal"
|
||||||
#
|
# serifs = "sans"
|
||||||
# design = [
|
#
|
||||||
# "sans"
|
# [buildPlans.iosevka-custom.variants.design]
|
||||||
# "expanded"
|
# capital-j = "serifless"
|
||||||
# ];
|
#
|
||||||
# };
|
# [buildPlans.iosevka-custom.variants.italic]
|
||||||
|
# i = "tailed"
|
||||||
|
# '';
|
||||||
|
|
||||||
|
# Or:
|
||||||
|
# privateBuildPlan = {
|
||||||
|
# family = "Iosevka Custom";
|
||||||
|
# spacing = "normal";
|
||||||
|
# serifs = "sans";
|
||||||
|
#
|
||||||
|
# variants = {
|
||||||
|
# design.capital-j = "serifless";
|
||||||
|
# italic.i = "tailed";
|
||||||
|
# };
|
||||||
|
# }
|
||||||
, privateBuildPlan ? null
|
, privateBuildPlan ? null
|
||||||
# Extra parameters. Can be used for ligature mapping.
|
# Extra parameters. Can be used for ligature mapping.
|
||||||
# It must be a raw toml string.
|
# It must be a raw TOML string.
|
||||||
#
|
|
||||||
# Ex:
|
# Ex:
|
||||||
# [[iosevka.compLig]]
|
# extraParameters = ''
|
||||||
# unicode = 57808 # 0xe1d0
|
# [[iosevka.compLig]]
|
||||||
# featureTag = 'XHS0'
|
# unicode = 57808 # 0xe1d0
|
||||||
# sequence = "+>"
|
# featureTag = 'XHS0'
|
||||||
|
# sequence = "+>"
|
||||||
|
# '';
|
||||||
, extraParameters ? null
|
, extraParameters ? null
|
||||||
# Custom font set name. Required if any custom settings above.
|
# Custom font set name. Required if any custom settings above.
|
||||||
, set ? null }:
|
, set ? null }:
|
||||||
|
|
||||||
assert (privateBuildPlan != null) -> set != null;
|
assert (privateBuildPlan != null) -> set != null;
|
||||||
|
assert (extraParameters != null) -> set != null;
|
||||||
|
|
||||||
let
|
let
|
||||||
# We don't know the attribute name for the Iosevka package as it
|
# We don't know the attribute name for the Iosevka package as it
|
||||||
@ -54,15 +74,21 @@ stdenv.mkDerivation rec {
|
|||||||
ttfautohint-nox
|
ttfautohint-nox
|
||||||
];
|
];
|
||||||
|
|
||||||
privateBuildPlanJSON =
|
buildPlan =
|
||||||
builtins.toJSON { buildPlans.${pname} = privateBuildPlan; };
|
if builtins.isAttrs privateBuildPlan
|
||||||
|
then builtins.toJSON { buildPlans.${pname} = privateBuildPlan; }
|
||||||
|
else privateBuildPlan;
|
||||||
|
|
||||||
inherit extraParameters;
|
inherit extraParameters;
|
||||||
passAsFile = [ "privateBuildPlanJSON" "extraParameters" ];
|
passAsFile = [ "buildPlan" "extraParameters" ];
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
runHook preConfigure
|
runHook preConfigure
|
||||||
${lib.optionalString (privateBuildPlan != null) ''
|
${lib.optionalString (builtins.isAttrs privateBuildPlan) ''
|
||||||
remarshal -i "$privateBuildPlanJSONPath" -o private-build-plans.toml -if json -of toml
|
remarshal -i "$buildPlanPath" -o private-build-plans.toml -if json -of toml
|
||||||
|
''}
|
||||||
|
${lib.optionalString (builtins.isString privateBuildPlan) ''
|
||||||
|
cp "$buildPlanPath" private-build-plans.toml
|
||||||
''}
|
''}
|
||||||
${lib.optionalString (extraParameters != null) ''
|
${lib.optionalString (extraParameters != null) ''
|
||||||
echo -e "\n" >> params/parameters.toml
|
echo -e "\n" >> params/parameters.toml
|
||||||
|
@ -115,7 +115,7 @@
|
|||||||
, "indium"
|
, "indium"
|
||||||
, "insect"
|
, "insect"
|
||||||
, "ionic"
|
, "ionic"
|
||||||
, {"iosevka": "https://github.com/be5invis/Iosevka/archive/v3.7.1.tar.gz"}
|
, {"iosevka": "https://github.com/be5invis/Iosevka/archive/v4.5.0.tar.gz"}
|
||||||
, "jake"
|
, "jake"
|
||||||
, "javascript-typescript-langserver"
|
, "javascript-typescript-langserver"
|
||||||
, "joplin"
|
, "joplin"
|
||||||
|
1439
pkgs/development/node-packages/node-packages.nix
generated
1439
pkgs/development/node-packages/node-packages.nix
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user