Fix - typo in native-comp flag (old flag was actually --with-nativecomp)

This commit is contained in:
adisbladis 2021-02-27 09:57:20 +02:00
parent afa5bd8ca4
commit 8091609efc
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -60,10 +60,10 @@ let
)
)
# --with-native-comp was changed to --with-native-compilation
# --with-nativecomp was changed to --with-native-compilation
# Remove this once 21.05 is released
(drv: if drv.passthru.nativeComp && self.lib.elem "--with-native-comp" drv.configureFlags then drv.overrideAttrs(old: {
configureFlags = builtins.map (flag: if flag == "--with-native-comp" then "--with-native-compilation" else flag) old.configureFlags;
(drv: if drv.passthru.nativeComp && self.lib.elem "--with-nativecomp" drv.configureFlags then drv.overrideAttrs(old: {
configureFlags = builtins.map (flag: if flag == "--with-nativecomp" then "--with-native-compilation" else flag) old.configureFlags;
}) else drv)
# reconnect pkgs to the built emacs