feat: nix flake for development

This commit is contained in:
Thea Schöbl
2023-07-27 18:14:43 +00:00
committed by Rainer Killinger
parent 06f3120345
commit 945ae039eb
12 changed files with 229 additions and 117 deletions

View File

@@ -86,15 +86,9 @@ async function minifyIconFont() {
}
glyphs.sort();
const pythonPath = `"${await run('npm config get python')}"`;
console.log(`Using python from npm config ${pythonPath}`);
console.log(await run(`${pythonPath} --version`));
console.log(await run([pythonPath, '-m', 'pip', 'install', 'fonttools[ufo,lxml,unicode,woff]']));
console.log(
await run([
pythonPath,
'-m fontTools.subset',
'pyftsubset',
`"${config.inputPath}"`,
`--unicodes=${glyphs.join(',')}`,
'--no-layout-closure',