diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2016-01-16 16:47:22 -0600 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2016-01-18 15:29:19 -0600 |
commit | 1724a07e2e06a7de4c30fc0983dfd4411771183e (patch) | |
tree | 2811cb35b9e341ebdc98a5a2c12002a9105ea1a1 /pkgs/build-support/emacs | |
parent | b81c8b9013469d156087869177d3d4c6b52b40a8 (diff) | |
download | nixpkgs-1724a07e2e06a7de4c30fc0983dfd4411771183e.tar nixpkgs-1724a07e2e06a7de4c30fc0983dfd4411771183e.tar.gz nixpkgs-1724a07e2e06a7de4c30fc0983dfd4411771183e.tar.bz2 nixpkgs-1724a07e2e06a7de4c30fc0983dfd4411771183e.tar.lz nixpkgs-1724a07e2e06a7de4c30fc0983dfd4411771183e.tar.xz nixpkgs-1724a07e2e06a7de4c30fc0983dfd4411771183e.tar.zst nixpkgs-1724a07e2e06a7de4c30fc0983dfd4411771183e.zip |
melpaBuild: keep original source file names without hash
Diffstat (limited to 'pkgs/build-support/emacs')
-rw-r--r-- | pkgs/build-support/emacs/generic.nix | 7 |
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="." ;; *) |