mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 21:57:02 +03:00
d3cea48608
All package sets are simultaneously updated to accommodate changes to package-build. Due to new restrictions in package-build, all packages using `melpaBuild` must now provide a recipe file, even those packages which are not included in upstream MELPA.
17 lines
550 B
EmacsLisp
17 lines
550 B
EmacsLisp
(require 'package)
|
|
(package-initialize)
|
|
|
|
(require 'package-recipe)
|
|
(require 'package-build)
|
|
|
|
(setq package-build-working-dir (expand-file-name "working/"))
|
|
(setq package-build-archive-dir (expand-file-name "packages/"))
|
|
(setq package-build-recipes-dir (expand-file-name "recipes/"))
|
|
|
|
(defun melpa2nix-build-package ()
|
|
(if (not noninteractive)
|
|
(error "`melpa2nix-build-package' is to be used only with -batch"))
|
|
(pcase command-line-args-left
|
|
(`(,package ,version)
|
|
(package-build--package (package-recipe-lookup package) version))))
|