diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2016-01-15 17:53:54 -0600 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2016-01-18 15:29:16 -0600 |
commit | 4b2303b8c9758e9bff119d4dfe7bc8b039a73ef1 (patch) | |
tree | 7a00425bb9214525f332ddebd6f29bdac4bd6f0f /pkgs/build-support/emacs/melpa2nix.el | |
parent | 61436c90e291145e829ae23dcf3bf742126c9eeb (diff) | |
download | nixpkgs-4b2303b8c9758e9bff119d4dfe7bc8b039a73ef1.tar nixpkgs-4b2303b8c9758e9bff119d4dfe7bc8b039a73ef1.tar.gz nixpkgs-4b2303b8c9758e9bff119d4dfe7bc8b039a73ef1.tar.bz2 nixpkgs-4b2303b8c9758e9bff119d4dfe7bc8b039a73ef1.tar.lz nixpkgs-4b2303b8c9758e9bff119d4dfe7bc8b039a73ef1.tar.xz nixpkgs-4b2303b8c9758e9bff119d4dfe7bc8b039a73ef1.tar.zst nixpkgs-4b2303b8c9758e9bff119d4dfe7bc8b039a73ef1.zip |
melpaBuild: get Emacs package name from recipe
When building a package from a Melpa recipe file, get the Emacs package name from the recipe. Nix is more restrictive about packages names than Emacs, so the Nix name for a package is sometimes different.
Diffstat (limited to 'pkgs/build-support/emacs/melpa2nix.el')
-rw-r--r-- | pkgs/build-support/emacs/melpa2nix.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/build-support/emacs/melpa2nix.el b/pkgs/build-support/emacs/melpa2nix.el index f1309fc0d57..babca25277c 100644 --- a/pkgs/build-support/emacs/melpa2nix.el +++ b/pkgs/build-support/emacs/melpa2nix.el @@ -25,8 +25,10 @@ (if (not noninteractive) (error "`melpa2nix-build-package' is to be used only with -batch")) (pcase command-line-args-left - (`(,package ,version ,recipe-file) - (let* ((rcp (cdr (package-build--read-from-file recipe-file))) + (`(,recipe-file ,version) + (let* ((recipe (package-build--read-from-file recipe-file)) + (rcp (cdr recipe)) + (package (car recipe)) (files (package-build--config-file-list rcp))) (melpa2nix-package-build-archive package version files))))) |