add nix development flake

This commit is contained in:
2023-07-21 00:07:11 +02:00
parent 9bf1a13e02
commit c59b2732f7
6 changed files with 72 additions and 12 deletions

View File

@@ -77,15 +77,9 @@ for (const icon of icons) {
}
glyphs.sort()
const pythonPath = "./venv/bin/python"
if (!existsSync(pythonPath)) {
throw new Error(`Expected a python virtual environment at ${pythonPath}`)
}
console.log(await run(`${pythonPath} --version`))
console.log(
await run([
pythonPath,
"-m fontTools.subset",
"pyftsubset",
`"${config.inputPath}"`,
`--unicodes=${glyphs.join(",")}`,
"--no-layout-closure",