Commit Graph

311 Commits

Author SHA1 Message Date
Lin Jian
18d131170b
emacs.pkgs.nongnuDevelPackages: init 2024-07-30 19:15:25 +08:00
Lin Jian
dfac396c77
emacs: move elpaBuild together with other builders 2024-07-29 11:59:19 +08:00
Anderson Torres
368f163caa emacs: migrate build-support/emacs to applications/editors/emacs/build-support
As a consequence of restrictions imposed by RFC 140 - Simple Package Paths [1]
-, files related to a package should be confined on the package directory.

Certainly this restriction does not apply to packages outside by-name hierarchy.

Nonetheless, this is an interesting organization heuristics: things that affect
Emacs should be confined inside Emacs directory. Besides a future migration, the
"debuggability" of a framework is way more enhanced when we know how to find all
its files.

A similar task was done before, when RFC 140 was not a thging yet - namely, the
migration of emacs-modes to elisp-packages [2].

[1] https://github.com/NixOS/rfcs/pull/140
[2] https://github.com/NixOS/nixpkgs/pull/123859
2024-07-06 09:41:13 -03:00
Hraban Luyat
1b26fc011a emacs: allow using as shebang on darwin 2023-09-24 19:50:52 -03:00
Lin Jian
26e8da26b4 emacsPackages: update comment about package-directory-list
Since Emacs 27[1], package initialization is done before init.el.
So package-directory-list needs to be modified in early-init.el.

[1]: https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS.27?id=cae528457cb862dc886a34240c9d4c73035b6659#n227
2023-08-25 10:22:30 +00:00
Lin Jian
665651c736 emacs: remove outdated doc about package initialization
Since Emacs 27[1], there is no need to call package-initialize in the
init file.

[1]: https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS.27?id=cae528457cb862dc886a34240c9d4c73035b6659#n227
2023-08-25 10:22:30 +00:00
adisbladis
a0056ef6ec emacs.pkgs.exwm: Prefer exwm from elpa devel
EXWM is not tagged very often, prefer it from elpa devel.
2023-06-22 18:48:49 +12:00
Juanjo Presa
2d6b28f068 emacsPackages.elpaDevelPackages: init 2023-06-04 18:53:00 +02:00
figsoda
ec8cb34358 treewide: fix typos 2022-12-17 19:39:44 -05:00
Vonfry
932ab304f0
emacsPackages.orgPackages: deprecated
org elpa is deprecated and moved into gnu elpa and nongnu elpa.

link: nix-community/emacs-overlay#191
2021-12-02 16:16:59 +08:00
Taeer Bar-Yam
dc79d3b0da emacsPackages: fix for missing passthru 2021-08-09 09:34:27 -04:00
adisbladis
24d0269574
emacs.pkgs.elpaPackages/nongnuPackages: Use custom elpa fetcher 2021-08-06 16:26:46 -05:00
adisbladis
9bd54f586e
emacs.pkgs: Propagate overriden scope to emacs package in set
This is the true fix for https://github.com/NixOS/nixpkgs/issues/130020.
2021-08-04 09:31:23 -05:00
sternenseemann
66f8529d91 emacsPackages.ada-mode: build tools needed at runtime
ada-mode includes extra binaries which are used by it at runtime. They
require gnat, gprbuild, gnatcoll-core and wisi's source checked out in
`../wisi-*`.
2021-08-03 14:58:49 +02:00
Vonfry
6acb016284
emacsPackages.nongnuPackages: init 2021-07-21 15:11:27 -05:00
Matthew Bauer
8bc10fbc56 Add gcc for emacs wrapper so native-comp works
On macos, we don’t have a gcc executable by default, which is required
for some reason when compiling site-start.
2021-06-23 23:02:11 -05:00
AndersonTorres
70a5cbc298 Rename emacs-modes to emacs/elisp-packages 2021-05-21 00:32:06 -03:00
adisbladis
ce30081651
emacs.pkgs.telega: Prefer telega from melpa stable
Telega uploads packages that are incompatible with stable tdlib
releases to melpa and ones that are compatible to melpa stable.

This makes the melpa packages very unreliable and we should prefer the
one from melpa stable.
2021-02-24 17:03:54 +01:00
adisbladis
1f18e81fd6
emacs-packages: Remove old FOR CONTRIBUTORS comment
It doesn't apply any more.
2021-02-24 15:46:08 +01:00
adisbladis
2b84cf6e18
emacs-packages: Make pkgs & lib overrideable
With these changes it's possible to override pkgs & lib by:
```
emacs.pkgs.override { pkgs = fooPkgs; }
```
and get them to coherently apply to all emacs packages.
2021-02-24 15:46:08 +01:00
adisbladis
c68c81fb01
emacsPackagesFor: Remove all pkgs inherits from call site 2021-02-24 15:40:58 +01:00
adisbladis
b673be8336
emacsPackagesFor: Internalise trivialBuild/melpaBuild
I want less strangeness that's not obviously overrideable.
2021-02-24 15:40:58 +01:00
adisbladis
9647372202
emacs.pkgs: Get rid of external from all-packages.nix
This was a strange construct that made these attrsets more difficult to work with.

It's simpler to just use pkgs.
2021-02-24 15:40:58 +01:00
Mauricio Collares
ca4db1bc79
emacs: add currently compiling package dirs to load-path
Co-authored-by: Tad Fisher <tadfisher@gmail.com>
2021-02-19 16:46:31 +01:00
adisbladis
6347f78fd9
emacsPackages*: Move to emacs*.pkgs
This makes it much easier to create customisations around emacs via
the a new convenience passthru attr:
- `emacs.pkgs`: What used to be emacsPackages is now `emacs.pkgs`

The previous versioned names `emacs*Packages` have been moved to
aliases.nix and are now considered deprecated in favour of `emacs*.pkgs`.
2021-01-13 17:04:55 +01:00
Pierre Allix
05fe6112c9 Fix small typo in a comment of emacs-packages 2020-12-22 12:56:57 +01:00
adisbladis
09f4fec63c
emacs-packages: Expose manually packaged packages through emacsPackages.manualPackages 2020-04-27 12:08:13 +01:00
Robert Helgesson
241e28e3d1
emacs: use runCommand to generate wrapper
This removes the unnecessary compiler build dependency. We also set

    preferLocalBuild = true;
    allowSubstitutes = false;

to not farm out the build on a remote builder or bother with trying to
find a binary substitution.
2019-09-18 22:32:19 +02:00
adisbladis
b6ccc1a6b0
emacs-packages: Make org packages overrideable 2019-08-18 11:10:06 +01:00
adisbladis
be74dec846
emacs-packages: Move manually created packages to it's own file
And let emacs-packages.nix only aggregate the attrsets
2019-08-07 18:04:23 +01:00
adisbladis
97a069609f
emacs-packages: Add overriding capability to emacsPackagesNg
This allows overriding the individual package sets composing
emacsPackagesNg.

Example:
```
myEmacsPackages = emacsPackagesNg.override {
  melpaPackages = {};
};
```
2019-08-07 18:04:22 +01:00
adisbladis
d490bcdf0f
emacs-packages.rtags: Inherit correct version 2019-08-07 18:04:22 +01:00
adisbladis
978b34622b
emacs-packages: Drop irony package
Use auto-generated melpa package
2019-08-07 18:04:22 +01:00
adisbladis
af70adbc89
emacs-packages: Drop elpy package
Use auto-generated melpa package
2019-08-07 18:04:22 +01:00
adisbladis
b00038c151
emacs-packages: Drop emacs-libvterm package
Use auto-generated melpa package
2019-08-07 18:04:22 +01:00
adisbladis
460e02a9c0
emacs-packages: Drop zmq package
Use generated melpa package instead
2019-08-07 18:04:21 +01:00
adisbladis
f7627be844
emacs-packages: Drop manually packaged pdf-tools
Use autogenerated package from melpa
2019-08-07 18:04:21 +01:00
adisbladis
48428ce6ec
emacs-packages: Drop shorten package
It's in the melpa generated package `circe`
2019-08-07 18:04:21 +01:00
adisbladis
7d1c5e84ca
emacs-packages: Drop redshank package
Use melpa generated package instead
2019-08-07 18:04:21 +01:00
adisbladis
1236d2d7f5
emacs-packages: Drop package lui
It's in the melpa generated package `circe`
2019-08-07 18:04:21 +01:00
adisbladis
6551f2aa5b
emacs-packages: Drop lcs package
It's in the melpa generated package `circe`
2019-08-07 18:04:21 +01:00
adisbladis
843eae6a51
emacs-packages: Drop emacsql-sqlite package
Use melpa generated package instead
2019-08-07 18:04:20 +01:00
adisbladis
334d3d90f6
emacsPackagesNg.evil-jumper: Drop package
It's now merged upstream in evil-mode
2019-08-07 18:04:20 +01:00
adisbladis
20ff3edcfa
emacs-packages: Drop stgit
Use autogenerated modules from melpa instead
2019-08-07 18:04:20 +01:00
adisbladis
1fc89fcad8
emacs-packages: Drop manually created nyan-mode derivation
Use autogenerated modules from melpa instead
2019-08-07 18:04:20 +01:00
adisbladis
6742c9976a
emacs-packages: Move shm
Use autogenerated modules from melpa instead
2019-08-07 18:04:20 +01:00
adisbladis
b88c30579a
emacs-packages.nix: Fix indent 2019-08-07 18:04:20 +01:00
adisbladis
47d3b98b4b
melpa-packages: Add ability to ovveride melpa JSON archive location
This enables using the melpa json generator in an overlay
2019-08-07 18:04:19 +01:00
Herwig Hochleitner
d65f1b20c3
emacs-modes: replace melpa-generated with json format
This approach has several differences with emacs2nix:

- the updater uses a downloaded recipes.json and archive.json for commit information, it uses a local checkout only for hashing the recipes
- the generated file is JSON
- the updater is written in emacs lisp
- prefetch errors are put into an error key in the JSON, for review + meta.broken attributes are generated from it

The updater re-uses the existing generated file to memoize prefetched content-sha256s for commits, thus prefetching should normally be quite fast.
2019-08-02 09:15:47 +01:00
Matthew Bauer
3b8e595810 zmq: add enableDrafts option
This is needed by emacs-zmq, and will be used by it.
2019-07-24 16:12:40 -04:00