···1(require 'package)
2(package-initialize)
300000000004(defun elpa2nix-install-package ()
5 (if (not noninteractive)
6 (error "`elpa2nix-install-package' is to be used only with -batch"))
···1(require 'package)
2(package-initialize)
34+;; TODO remove this patch when Emacs bug#77143 is fixed
5+;; see that bug for more info
6+(defun package--description-file (dir)
7+ "Return package description file name for package DIR."
8+ (concat (let ((subdir (file-name-nondirectory
9+ (directory-file-name dir))))
10+ (if (string-match "\\([^.].*?\\)-\\([0-9]+\\(?:[.][0-9]+\\|\\(?:pre\\|beta\\|alpha\\|snapshot\\)[0-9]+\\)*\\)\\'" subdir)
11+ (match-string 1 subdir) subdir))
12+ "-pkg.el"))
13+14(defun elpa2nix-install-package ()
15 (if (not noninteractive)
16 (error "`elpa2nix-install-package' is to be used only with -batch"))
···1-diff --git a/package-build.el b/package-build.el
2-index 29cdb61..c19be1b 100644
3---- a/package-build.el
4-+++ b/package-build.el
5-@@ -923,7 +923,6 @@ DIRECTORY is a temporary directory that contains the directory
6- that is put in the tarball."
7- (let* ((name (oref rcp name))
8- (version (oref rcp version))
9-- (time (oref rcp time))
10- (tar (expand-file-name (concat name "-" version ".tar")
11- package-build-archive-dir))
12- (dir (concat name "-" version)))
13-@@ -939,7 +938,7 @@ that is put in the tarball."
14- ;; prevent a reproducible tarball as described at
15- ;; https://reproducible-builds.org/docs/archives.
16- "--sort=name"
17-- (format "--mtime=@%d" time)
18-+ "--mtime=@0"
19- "--owner=0" "--group=0" "--numeric-owner"
20- "--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime"))
21- (when (and package-build-verbose noninteractive)
···11 inherit pname version;
1213 src = fetchFromGitHub {
14- owner = "atkrad";
15 repo = pname;
16 rev = "v${version}";
17 hash = "sha256-UVs8tCOgPU/IwM3Z3/ehFnAbHTSOHGAO9VpcB/NItGM=";
···2425 meta = with lib; {
26 description = "Wait4X allows you to wait for a port or a service to enter the requested state";
27- homepage = "https://github.com/atkrad/wait4x";
28 license = licenses.asl20;
29 maintainers = with maintainers; [ jfvillablanca ];
30 mainProgram = "wait4x";
···11 inherit pname version;
1213 src = fetchFromGitHub {
14+ owner = "wait4x";
15 repo = pname;
16 rev = "v${version}";
17 hash = "sha256-UVs8tCOgPU/IwM3Z3/ehFnAbHTSOHGAO9VpcB/NItGM=";
···2425 meta = with lib; {
26 description = "Wait4X allows you to wait for a port or a service to enter the requested state";
27+ homepage = "https://github.com/wait4x/wait4x";
28 license = licenses.asl20;
29 maintainers = with maintainers; [ jfvillablanca ];
30 mainProgram = "wait4x";