mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 21:57:52 +03:00
elpa2nix: fix packages with DOS line endings
This commit is contained in:
parent
decb5802c9
commit
9dfd9fe0bf
@ -21,7 +21,10 @@
|
||||
(defun elpa2nix-install-file (file)
|
||||
"Install a package from a file.
|
||||
The file can either be a tar file or an Emacs Lisp file."
|
||||
(with-temp-buffer
|
||||
(insert-file-contents-literally file)
|
||||
(when (string-match "\\.tar\\'" file) (tar-mode))
|
||||
(elpa2nix-install-from-buffer)))
|
||||
(let ((is-tar (string-match "\\.tar\\'" file)))
|
||||
(with-temp-buffer
|
||||
(if is-tar
|
||||
(insert-file-contents-literally file)
|
||||
(insert-file-contents file))
|
||||
(when is-tar (tar-mode))
|
||||
(elpa2nix-install-from-buffer))))
|
||||
|
Loading…
Reference in New Issue
Block a user