emacs2nix
emacs2nix copied to clipboard
Automatically generate Nix expressions for Emacs packages
Running the command `nix-shell -A env` causes the `error: attribute env in selection path env not found`.
Hello, there are a lot of projects listed on [emacsmirror](https://emacsmirror.net/). Here you can find [Package (552)](https://emacsmirror.net/stats/melpa.html). Despite asking these Packages are likely to never appear on melpa and in conclusion...
Elpa compresses all but the newest versions of a package and keeps compressed archives only of around 20 hand-selected versions. They also keep all packages in their git repo, which...
This doesn't need to be complicated: we just need to install Nix and build the project. We could also try generating some packages as a quick test, but I don't...
When `update-elpa` script is executed inside `pkgs/applications/editors/emacs/elisp-packages/` of Nixpkgs repo, it always duplicate the specific recipe `shell-command-plus`. Certainly it can be fixed by hand, but it is always a tedious...
If run with an existing `elpa-generated.nix` file, a new `shell-command-plus` attribute is added, even if it already exists, resulting in evaluation errors.
``` $ ./melpa-stable-packages.sh --melpa $MELPA -o $NIXPKGS/pkgs/applications/editors/emacs-modes/melpa-stable-generated.nix --names names.nix in process emacs -Q --batch -L /home/ryantm/p/melpa/package-build -l /nix/store/bfadm4445a5j7mmj2cmqpazipg4wf21i-emacs2nix-0.1.0.0-data/share/ghc-8.2.2/x86_64-linux-ghc-8.2.2/emacs2nix-0.1.0.0/scripts/dump-recipes.el -f dump-recipes-json /home/ryantm/p/melpa/recipes: died with exit code 255: Unable to activate package...
One thread per CPU is used by default. Generating packages is heavily IO-bound. My own experiments suggest that four threads per CPU works better. See also #16.
Along the same lines as #8, it would be nice to produce at the end of the run a summary of packages added and removed from the package set.
``` $ ./melpa-stable-packages.sh Preprocessing library emacs2nix-0.1.0.0... In-place registering emacs2nix-0.1.0.0... Preprocessing executable 'melpa2nix' for emacs2nix-0.1.0.0... Running melpa2nix... Missing: --melpa DIR (-o|--output FILE) Usage: melpa2nix [-t|--threads N] --melpa DIR [--stable] --work DIR...