mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
nerd-font-patcher: move path fixing to fixup phase (#571352)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user