installFonts: make preInstall hook (#513823)
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
# This hook also provides an `installFont` function that can be used to install
|
||||
# additional fonts of a particular extension into their respective folder.
|
||||
#
|
||||
postInstallHooks+=(installFonts)
|
||||
preInstallHooks+=(installFonts)
|
||||
|
||||
installFont() {
|
||||
if (($# != 2)); then
|
||||
|
||||
@@ -21,7 +21,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
preInstall = ''
|
||||
rm -r "__MACOSX"
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user