emacs: Don't use interpolation for version

This commit is contained in:
adisbladis 2020-07-24 10:55:31 +02:00
parent 807e8e053c
commit d1b0eef9b5
No known key found for this signature in database
GPG Key ID: 110BFAD44C6249B7

View File

@ -135,11 +135,13 @@ stdenv.mkDerivation rec {
$out/bin/emacs --batch -f batch-byte-compile $out/share/emacs/site-lisp/site-start.el $out/bin/emacs --batch -f batch-byte-compile $out/share/emacs/site-lisp/site-start.el
siteVersionDir=`ls $out/share/emacs | grep -v site-lisp | head -n 1`
rm -rf $out/var rm -rf $out/var
rm -rf $out/share/emacs/${version}/site-lisp rm -rf $siteVersionDir
'' + lib.optionalString withCsrc '' '' + lib.optionalString withCsrc ''
for srcdir in src lisp lwlib ; do for srcdir in src lisp lwlib ; do
dstdir=$out/share/emacs/${version}/$srcdir dstdir=$siteVersionDir/$srcdir
mkdir -p $dstdir mkdir -p $dstdir
find $srcdir -name "*.[chm]" -exec cp {} $dstdir \; find $srcdir -name "*.[chm]" -exec cp {} $dstdir \;
cp $srcdir/TAGS $dstdir cp $srcdir/TAGS $dstdir