···11(require 'package)
22(package-initialize)
3344+;; TODO remove this patch when Emacs bug#77143 is fixed
55+;; see that bug for more info
66+(defun package--description-file (dir)
77+ "Return package description file name for package DIR."
88+ (concat (let ((subdir (file-name-nondirectory
99+ (directory-file-name dir))))
1010+ (if (string-match "\\([^.].*?\\)-\\([0-9]+\\(?:[.][0-9]+\\|\\(?:pre\\|beta\\|alpha\\|snapshot\\)[0-9]+\\)*\\)\\'" subdir)
1111+ (match-string 1 subdir) subdir))
1212+ "-pkg.el"))
1313+414(defun elpa2nix-install-package ()
515 (if (not noninteractive)
616 (error "`elpa2nix-install-package' is to be used only with -batch"))
···11-diff --git a/package-build.el b/package-build.el
22-index 29cdb61..c19be1b 100644
33---- a/package-build.el
44-+++ b/package-build.el
55-@@ -923,7 +923,6 @@ DIRECTORY is a temporary directory that contains the directory
66- that is put in the tarball."
77- (let* ((name (oref rcp name))
88- (version (oref rcp version))
99-- (time (oref rcp time))
1010- (tar (expand-file-name (concat name "-" version ".tar")
1111- package-build-archive-dir))
1212- (dir (concat name "-" version)))
1313-@@ -939,7 +938,7 @@ that is put in the tarball."
1414- ;; prevent a reproducible tarball as described at
1515- ;; https://reproducible-builds.org/docs/archives.
1616- "--sort=name"
1717-- (format "--mtime=@%d" time)
1818-+ "--mtime=@0"
1919- "--owner=0" "--group=0" "--numeric-owner"
2020- "--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime"))
2121- (when (and package-build-verbose noninteractive)