Merge pull request #103913 from catern/copysrc

emacs: properly include source code when withCsrc is true
This commit is contained in:
Michael Raskin 2020-11-22 16:37:40 +00:00 committed by GitHub
commit eee54dba79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -145,7 +145,7 @@ in stdenv.mkDerivation {
rm -rf $siteVersionDir
'' + lib.optionalString withCsrc ''
for srcdir in src lisp lwlib ; do
dstdir=$siteVersionDir/$srcdir
dstdir=$out/share/emacs/$siteVersionDir/$srcdir
mkdir -p $dstdir
find $srcdir -name "*.[chm]" -exec cp {} $dstdir \;
cp $srcdir/TAGS $dstdir

View File

@ -52,9 +52,6 @@ least specific (the system profile)"
(file-name-directory load-file-name)))) ; .../emacs/site-lisp/
(version
(file-name-as-directory
(concat
(number-to-string emacs-major-version)
"."
(number-to-string emacs-minor-version))))
emacs-version))
(src (file-name-as-directory "src")))
(setq find-function-C-source-directory (concat emacs version src)))