nerd-font-patcher: move path fixing to fixup phase (#571352)

This commit is contained in:
Adam Dinwoodie
2026-10-08 06:35:57 +00:00
committed by GitHub

View File

@@ -21,10 +21,6 @@ python3Packages.buildPythonApplication (finalAttrs: {
patches = [
./use-nix-paths.patch
];
postPatch = ''
substituteInPlace font-patcher \
--replace-fail "'glyphnames.json'" "'../share/glyphnames.json'"
'';
dontBuild = true;
@@ -38,6 +34,11 @@ python3Packages.buildPythonApplication (finalAttrs: {
runHook postInstall
'';
preFixup = ''
substituteInPlace "$out"/bin/nerd-font-patcher \
--replace-fail "'glyphnames.json'" "'$out/share/glyphnames.json'"
'';
meta = {
description = "Font patcher to generate Nerd font";
mainProgram = "nerd-font-patcher";