summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/build-support/emacs/generic.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/build-support/emacs/generic.nix b/pkgs/build-support/emacs/generic.nix
index d41f90ebd05..6fa27f09839 100644
--- a/pkgs/build-support/emacs/generic.nix
+++ b/pkgs/build-support/emacs/generic.nix
@@ -32,8 +32,11 @@ stdenv.mkDerivation ({
   unpackCmd = ''
     case "$curSrc" in
       *.el)
-        cp $curSrc $pname.el
-        chmod +w $pname.el
+        # keep original source filename without the hash
+        local filename=$(basename "$curSrc")
+        filename="''${filename:33}"
+        cp $curSrc $filename
+        chmod +w $filename
         sourceRoot="."
         ;;
       *)