File tree Expand file tree Collapse file tree 7 files changed +24
-29
lines changed
pkgs/applications/editors/emacs
elisp-packages/manual-packages
session-management-for-emacs Expand file tree Collapse file tree 7 files changed +24
-29
lines changed Original file line number Diff line number Diff line change 11(require 'package )
22(package-initialize )
33
4+ ; ; 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+
414(defun elpa2nix-install-package ()
515 (if (not noninteractive)
616 (error " `elpa2nix-install-package' is to be used only with -batch" ))
Original file line number Diff line number Diff line change 2424 src = fetchFromGitHub {
2525 owner = "melpa" ;
2626 repo = "package-build" ;
27- rev = "d5661f1f1996a893fbcbacb4d290c57acab4fb0e " ;
28- hash = "sha256-zVhFR2kLLkCKC+esPBbIk3qOa033YND1HF9GiNI4JM8 =" ;
27+ rev = "d1722503145facf96631ac118ec0213a73082b76 " ;
28+ hash = "sha256-utsZLm9IF9UkTwxFWvJmwA3Ox4tlMeNNTo+f/CqYJGA =" ;
2929 } ;
3030
31- patches = [ ./package-build-dont-use-mtime.patch ] ;
31+ prePatch = ''
32+ substituteInPlace package-build.el \
33+ --replace-fail '(format "--mtime=@%d" time)' '"--mtime=@0"'
34+ '' ;
3235
3336 dontConfigure = true ;
3437 dontBuild = true ;
Original file line number Diff line number Diff line change 1212 (let* ((default-directory (package-recipe--working-tree rcp)))
1313 (unwind-protect
1414 (let ((files (package-build-expand-files-spec rcp t )))
15- (unless files
16- (error " Unable to find files matching recipe patterns " ))
17- (if (> (length files ) 1 )
18- (package-build--build-multi-file-package rcp files )
19- (package-build--build-single-file-package rcp files ))))))
15+ (if files
16+ (funcall package-build-build-function rcp files )
17+ (error " Unable to find files matching recipe patterns " ))))))
2018
2119(defun melpa2nix-build-package ()
2220 (unless noninteractive
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 66
77melpaBuild {
88 pname = "color-theme-solarized" ;
9+ ename = "solarized-theme" ;
910 version = "0-unstable-2023-02-09" ;
1011
1112 src = fetchFromGitHub {
@@ -15,6 +16,8 @@ melpaBuild {
1516 hash = "sha256-7E8r56dzfD06tsQEnqU5mWSbwz9x9QPbzken2J/fhlg=" ;
1617 } ;
1718
19+ files = ''(:defaults (:exclude "color-theme-solarized-pkg.el"))'' ;
20+
1821 # https://github.com/NixOS/nixpkgs/issues/335408
1922 ignoreCompilationError = true ;
2023
Original file line number Diff line number Diff line change 1515in
1616melpaBuild {
1717 inherit pname version src ;
18+ melpaVersion = "1.4" ; # upstream versions such as 1.04 are not supported
1819
1920 outputs = [
2021 "out"
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ melpaBuild rec {
88 pname = "session-management-for-emacs" ;
99 ename = "session" ;
1010 version = "2.2a" ;
11+ melpaVersion = "2.2" ; # default value derived from version is not valid for Emacs
1112
1213 src = fetchzip {
1314 url = "mirror://sourceforge/emacs-session/session-${ version } .tar.gz" ;
You can’t perform that action at this time.
0 commit comments