mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
9e860e41eb
From https://github.com/Uthar/nix-cl Commit ebeb76057abf01029067f1ebe0ae6fae90848bfe
28 lines
No EOL
1 KiB
Diff
28 lines
No EOL
1 KiB
Diff
Prevent swank from attempting write into storeDir
|
|
--- a/swank-loader.lisp
|
|
+++ b/swank-loader.lisp
|
|
@@ -162,7 +162,7 @@
|
|
,(unique-dir-name)))
|
|
(user-homedir-pathname)))
|
|
|
|
-(defvar *fasl-directory* (default-fasl-dir)
|
|
+(defvar *fasl-directory* #P"@out@/fasl/"
|
|
"The directory where fasl files should be placed.")
|
|
|
|
(defun binary-pathname (src-pathname binary-dir)
|
|
@@ -284,12 +284,7 @@
|
|
(contrib-dir src-dir))))
|
|
|
|
(defun delete-stale-contrib-fasl-files (swank-files contrib-files fasl-dir)
|
|
- (let ((newest (reduce #'max (mapcar #'file-write-date swank-files))))
|
|
- (dolist (src contrib-files)
|
|
- (let ((fasl (binary-pathname src fasl-dir)))
|
|
- (when (and (probe-file fasl)
|
|
- (<= (file-write-date fasl) newest))
|
|
- (delete-file fasl))))))
|
|
+ (declare (ignore swank-files contrib-files fasl-dir)))
|
|
|
|
(defun compile-contribs (&key (src-dir (contrib-dir *source-directory*))
|
|
(fasl-dir (contrib-dir *fasl-directory*))
|
|
|
|
Diff finished. Sat Jan 22 23:57:27 2022
|