melpaBuild: keep original source file names without hash
commit1724a07e2e06a7de4c30fc0983dfd4411771183e
authorThomas Tuegel <ttuegel@gmail.com>
dateSat 16 Jan 2016, 16:47 (11 years ago)
parentb81c8b9
pkgs/build-support/emacs/generic.nix+5−2
@@ -32,8 +32,11 @@ stdenv.mkDerivation ({
3232 unpackCmd = ''
3333 case "$curSrc" in
3434 *.el)
35− cp $curSrc $pname.el
36− chmod +w $pname.el
35+ # keep original source filename without the hash
36+ local filename=$(basename "$curSrc")
37+ filename="''${filename:33}"
38+ cp $curSrc $filename
39+ chmod +w $filename
3740 sourceRoot="."
3841 ;;
3942 *)