lol

Merge pull request #95601 from NixOS/f/emacs

emacs: use autoreconfHook instead of manually invoking it

authored by

adisbladis and committed by
GitHub
0c86b65e 05011b51

+11 -13
+11 -13
pkgs/applications/editors/emacs/default.nix
··· 11 11 , withGTK3 ? true, gtk3-x11 ? null, gsettings-desktop-schemas ? null 12 12 , withXwidgets ? false, webkitgtk ? null, wrapGAppsHook ? null, glib-networking ? null 13 13 , withCsrc ? true 14 - , srcRepo ? false, autoconf ? null, automake ? null, texinfo ? null 14 + , srcRepo ? false, autoreconfHook ? null, texinfo ? null 15 15 , siteStart ? ./site-start.el 16 16 , nativeComp ? false 17 17 , toolkit ? ( ··· 56 56 rm -fr .git 57 57 '') 58 58 59 + '' 60 + substituteInPlace lisp/international/mule-cmds.el \ 61 + --replace /usr/share/locale ${gettext}/share/locale 62 + 63 + for makefile_in in $(find . -name Makefile.in -print); do 64 + substituteInPlace $makefile_in --replace /bin/pwd pwd 65 + done 66 + '' 67 + 59 68 # Make native compilation work both inside and outside of nix build 60 69 (lib.optionalString nativeComp (let 61 70 libPath = lib.concatStringsSep ":" [ ··· 78 87 LIBRARY_PATH = if nativeComp then "${lib.getLib stdenv.cc.libc}/lib" else ""; 79 88 80 89 nativeBuildInputs = [ pkgconfig makeWrapper ] 81 - ++ lib.optionals srcRepo [ autoconf automake texinfo ] 90 + ++ lib.optionals srcRepo [ autoreconfHook texinfo ] 82 91 ++ lib.optional (withX && (withGTK3 || withXwidgets)) wrapGAppsHook; 83 92 84 93 buildInputs = ··· 113 122 ++ lib.optional withXwidgets "--with-xwidgets" 114 123 ++ lib.optional nativeComp "--with-nativecomp" 115 124 ; 116 - 117 - preConfigure = lib.optionalString srcRepo '' 118 - ./autogen.sh 119 - '' + '' 120 - substituteInPlace lisp/international/mule-cmds.el \ 121 - --replace /usr/share/locale ${gettext}/share/locale 122 - 123 - for makefile_in in $(find . -name Makefile.in -print); do 124 - substituteInPlace $makefile_in --replace /bin/pwd pwd 125 - done 126 - ''; 127 125 128 126 installTargets = [ "tags" "install" ]; 129 127