Commit Graph

691 Commits

Author SHA1 Message Date
adisbladis
17e9d22b2b
Merge pull request #235710 from kira-bruneau/emacsPackages.acm-terminal
emacsPackages.acm-terminal: 20230215.414 -> 20230601.1326
2023-06-03 21:13:48 +12:00
Kira Bruneau
0cad02d6da emacsPackages.acm-terminal: 20230215.414 -> 20230601.1326 2023-06-03 01:00:14 -04:00
Kira Bruneau
44f6f0e404 emacsPackages.lsp-bridge: 20230424.1642 -> 20230603.345 2023-06-03 00:58:45 -04:00
Mario Rodas
8f0515dbf7 emacs.pkgs.treesit-grammars: refactor
- Do not pass tree-sitter since it refers to the Emacs packages and it's
  not needed

- Use stdenv.hostPlatform since it's not a compiler.
2023-06-03 04:20:00 +00:00
adisbladis
a11f65c777
Merge pull request #233538 from yuzukicat/emacsPackages.mind-wave
emacsPackages.mind-wave 2d94f553a394ce73bcb91490b81e0fc042baa8d3 -> 5…
2023-06-01 11:40:48 +12:00
Brian Leung
0bf7571e2f
emacs: Enable SQLite3 and WebP for Emacs >=29 2023-05-30 16:04:30 -07:00
Anderson Torres
3d43f48a93 emacs29: init at 20.0.91
Given that Emacs 29 is considered beta, it will not be aliased to `emacs`.
And, given that Emacs 29 ships with Pure GTK feature, why not to make it
available?
2023-05-29 22:23:52 -03:00
Anderson Torres
c4e48ded59 emacs: a huge refactor
A list of modifications:

- The calling handles at `top-level/all-packages.nix` were transferred to
`pkgs/applications/editors/emacs/default.nix` (the good old `recurseIntoAttrs`
design pattern);
- The files `macport.nix` and `28.nix` were removed, replaced by the bigger and
better `sources.nix`;
- Aliases for the most important derivations were put on `all-packages.nix`;
- The file `generic.nix` was refactored. Among its changes, the most noticeable:
  - `pname` is decorated according to the selected UI options;
  - Environment variables are explicitly under `env` set;
  - The `null` defaults and (in)equality tests were removed;
    - It obliged the addition of some Boolean flag guards;
  - The flag `noGui` was added, allowing easier override for `emacs-nox`.

With this huge refactor, the emacs build functions become more sane and
maintainable, allowing future additions.
2023-05-29 22:16:45 -03:00
Daniel Nagy
3ac96ee222
emacsPackages.hsc3-mode: use trivialBuild 2023-05-24 16:38:43 +02:00
yuzukicat
507c3f748c
emacsPackages.mind-wave 2d94f553a394ce73bcb91490b81e0fc042baa8d3 -> 5109162b74872091c5090a28389bef8f7020274c 2023-05-23 12:34:10 +09:00
Daniel Nagy
bf17936bdf emacsPackages.color-theme-solarized: use packageRequires 2023-05-21 10:33:05 -03:00
Daniel Nagy
f5f2c185df
emacsPackages.prolog-mode: use trivialBuild 2023-05-19 11:45:00 +02:00
Damien Cassou
2a26bcd60c
Merge pull request #230751 from DamienCassou/emacs-tree-sitter-grammars 2023-05-16 20:20:20 +02:00
Aidan Gauland
4bfdf5a7b3 header-file-mode: remove
I am no longer able to maintain this package, and an incoming PR
(#231411) breaks this package.
2023-05-12 20:42:00 -03:00
Damien Cassou
e764298465
emacs.pkgs.treesit-grammars: init fake package
Adding this package gives Emacs access to tree-sitter grammars.
2023-05-09 20:36:17 +02:00
Daniel Nagy
2e9917baa1
emacsPackages.tokei: replace program 2023-05-05 16:15:00 +02:00
Mario Rodas
120dd6a803
Merge pull request #226470 from nagy/wat-mode
emacsPackages.wat-mode: init at unstable-2022-07-13
2023-05-01 18:38:26 -05:00
Kira Bruneau
740e1e27fa
Merge pull request #227856 from kira-bruneau/emacsPackages.lsp-bridge
emacsPackages.lsp-bridge: 20230311.1648 -> 20230424.1642
2023-04-23 21:36:55 -04:00
Kira Bruneau
072de16b78 emacsPackages.lsp-bridge: 20230311.1648 -> 20230424.1642 2023-04-23 14:39:14 -04:00
Anderson Torres
423204a982 emacsPackages.ligo-mode: fixup meta 2023-04-22 16:20:10 -03:00
Anderson Torres
00cc237f08 malpa-packages: shadow ligo-mode 2023-04-22 12:16:23 -03:00
Anderson Torres
fa9e9b0a65 emacsPackages.ligo-mode: init at 20230302.1616
Maybe it should solve the problem with the auto-updater.
2023-04-22 12:16:23 -03:00
Anderson Torres
3b23c18951 elisp-packages: break ligo-mode
Because the auto-updater is not picking the correct hash.
2023-04-22 12:16:23 -03:00
Anderson Torres
255786c08a elisp-packages: remove bqn-mode
It is now provided by MELPA - and we already package MELPA things.
2023-04-22 12:16:23 -03:00
Anderson Torres
1af03fae83 nongnu-packages: updated 2023-04-21 (from overlay) 2023-04-22 12:16:23 -03:00
Anderson Torres
342214aa58 melpa-packages: updated 2023-04-21 (from overlay) 2023-04-22 12:16:23 -03:00
Anderson Torres
e4024ca853 elpa-packages: updated 2023-04-21 (from overlay) 2023-04-22 12:16:23 -03:00
adisbladis
1d01024c5b
Merge pull request #227160 from treed/jinx-on-darwin
emacs.pkgs.jinx: use platform-specific library extension
2023-04-21 18:07:19 +12:00
Ted Reed
dc24509e1d emacs.pkgs.jinx: use platform-specific library extension 2023-04-20 18:54:40 -07:00
R. Ryantm
2e80c06347 emacsPackages.ebuild-mode: 1.61 -> 1.63 2023-04-20 06:11:57 +00:00
Damien Cassou
5bf1f8fd50
emacs.pkgs.sqlite3: build .so file 2023-04-17 15:29:17 +02:00
Daniel Nagy
c8fe3df4ec
emacsPackages.wat-mode: init at unstable-2022-07-13 2023-04-16 15:30:00 +02:00
adisbladis
bcdc29d7ae emacs.pkgs.ement: remove manually packaged ement.el
It's better that we use the one from elpa that is auto-generated.
2023-04-12 23:56:04 +12:00
Vladimír Čunát
fd77cd7a01
Merge branch 'master' into staging-next
Indentation conflict in vulkan-related src fetches.
2023-04-08 11:33:08 +02:00
Adam Joseph
82d4de8ecf emacs: mark meta.broken if cross 2023-04-07 00:46:00 -07:00
github-actions[bot]
5e498b046d
Merge staging-next into staging 2023-04-04 12:01:50 +00:00
adisbladis
9a3ed17bc8
Merge pull request #213419 from stig/ox-rss
ox-rss: init at version 20230129
2023-04-04 22:25:39 +12:00
Damien Cassou
1b5ba6d5bd
emacs.pkgs.jinx: build .so file
Co-authored-by: Jian Lin <75130626+jian-lin@users.noreply.github.com>
2023-04-03 21:13:51 +02:00
Bernardo Meurer
f1f6ca8bcd
Merge pull request #209870 from amjoseph-nixpkgs/pr/stdenv/external-gcc-bootstrap 2023-04-03 08:19:03 -07:00
Lin Jian
f443d2e523 nongnu-packages: updated 2023-04-03 (from overlay) 2023-04-02 19:33:06 -03:00
Lin Jian
faa0f0f942 melpa-packages: updated 2023-04-03 (from overlay) 2023-04-02 19:33:06 -03:00
Lin Jian
08389e35bc elpa-packages: updated 2023-04-03 (from overlay) 2023-04-02 19:33:06 -03:00
Adam Joseph
6c209e862e emacs: path fixes resulting from libgccjit changes
The Nix-driven bootstrap of gcc resulted in some changes to the
structure of the `libgccjit` outpaths, and also added an additional
output (`libgcc`) to `gcc`.

This commit makes the corresponding changes in the `emacs`
derivation in order to not break emacs.

Emacs is the only user of `libgccjit` in nixpkgs at the moment.
2023-04-02 13:49:54 -07:00
adisbladis
f5c5751d07
Merge pull request #224125 from tadfisher/emacs-pgtk-wrapgappshook
emacs: include wrapGAppsHook for pgtk build
2023-04-01 14:36:19 +13:00
Tad Fisher
42e2af66c4
emacs: include wrapGAppsHook for pgtk build 2023-03-31 12:51:43 -07:00
yuzukicat
aa410839cd
emacsPackages.mind-wave packaging 2023-03-23 11:26:00 +09:00
Ted Reed
2e29c38ec4 emacs.pkgs.project: Use project from elpa
The version of project on ELPA has now moved well beyond what was
available in emacs 28, and packages such as eglot are depending on
these newer versions.
2023-03-18 08:04:29 -03:00
Bernardo Meurer
6e55733359
Merge pull request #219747 from Stunkymonkey/deprecate-isNull 2023-03-16 11:10:22 -03:00
Chris Hodapp
1a8edfe192
emacs: Add basic tree-sitter support (#219559)
This commit adds basic support for tree-sitter in the emacs build,
such that (if the user opts into tree-sitter support), tree-sitter
will be enabled and binary library files for tree-sitter can be
included in the `lib` directory of packages passed to
`emacsWithPackages`. The libraries will be aggregated and included in
treesit-extra-load-path.

The previous pattern for this in the community was to add tree-sitter
libaries by patching emacs's `RUNPATH` with `patchelf` in a post-fixup
phase. However, this has the substantial drawback that two different
emacs installations with different lists of available tree-sitter
libraries must be entirely separate builds. By supplying the
tree-sitter libraries in the wrapping layer of `emacsWithpackages`, it
becomes possible to share a single, more-cacheable "core emacs".

This support defaults to "on" only in emacs 29 and up, since previous
versions do not support tree-sitter out of the box.
2023-03-15 16:51:29 +13:00
Kira Bruneau
2f0762e173
Merge pull request #220529 from kira-bruneau/emacsPackages.acm-terminal
emacsPackages.acm-terminal: init at 20230215.414
2023-03-12 11:24:01 -04:00
Kira Bruneau
38377899d2
Merge pull request #219993 from kira-bruneau/emacsPackages.lsp-bridge
emacsPackages.lsp-bridge: init at 20230309.554
2023-03-12 11:23:12 -04:00
Kira Bruneau
08916245bd emacsPackages.acm-terminal: init at 20230215.414 2023-03-12 10:17:44 -04:00
Kira Bruneau
861156414d emacsPackages.lsp-bridge: init at 20230309.554 2023-03-12 10:17:44 -04:00
Anderson Torres
fe12faba4d Revert "Merge pull request #217317 from atorres1985-contrib/remove-bqn-mode"
This reverts commit aff38799b1, reversing
changes made to 573ed79d1b.

According to the bug reported at
https://github.com/NixOS/nixpkgs/pull/217317#issuecomment-1458621144, the Emacs
package ligo-mode returns an unexpected hash.
2023-03-09 07:21:35 -03:00
Kira Bruneau
525aff3ab3 elisp-packages/manual-packages.nix: use self-scoped callPackage 2023-03-07 07:51:42 -05:00
Felix Buehler
d10e69c86b treewide: deprecate isNull
https://nixos.org/manual/nix/stable/language/builtins.html#builtins-isNull
2023-03-06 22:40:04 +01:00
adisbladis
7fbb029fb2
Merge pull request #219469 from linyinfeng/emacs-rime
emacsPackages.rime: precompile librime-emacs.so
2023-03-06 09:48:05 +13:00
Anderson Torres
451dfa6d84 elisp-packages/manual-packages.nix: get rid of with
As related in https://nix.dev/anti-patterns/language#with-attrset-expression:

- Static analysis can’t reason about the code, because it would have to actually
  evaluate this file to see what variables are in scope;

- As soon as there are two with used, it’s not clear anymore from which the
  variables are coming from;

- Scoping rules around with are not intuitive. Examples:
  - https://github.com/NixOS/nix/issues/490
  - eea78e554e
2023-03-05 13:17:08 -03:00
Anderson Torres
e72f4061e5 emacs.pkgs.bqn-mode: remove
Now bqn-mode is provided by MELPA, and can be retrieved automagically.
2023-03-04 21:25:06 -03:00
Anderson Torres
f31c5fb91f nongnu-packages: updated 2023-03-04 (from overlay) 2023-03-04 21:25:06 -03:00
Anderson Torres
3baf060048 melpa-packages: updated 2023-03-04 (from overlay) 2023-03-04 21:25:05 -03:00
Anderson Torres
5b679da45e elpa-packages: updated 2023-03-04 (from overlay) 2023-03-04 21:25:05 -03:00
Lin Yinfeng
aae16eef48
emacsPackages.rime: precompile librime-emacs.so 2023-03-04 18:03:26 +08:00
Sebastian Wild
fba2ff4c5a
emacs.pkgs.melpaStablepackages.emacsql: Add sqlite as dependency 2023-02-24 11:50:44 +01:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Stig Brautaset
368b64a478 ox-rss: init at version 20230129
The recipes-archive-melpa.json already has what is required.
2023-02-22 13:49:22 +00:00
Anderson Torres
297ba7ca32 melpa-packages: updated 2023-02-21 (from overlay) 2023-02-21 20:05:28 -03:00
Anderson Torres
7503c1d701 elpa-packages: updated 2023-02-21 (from overlay) 2023-02-21 20:05:26 -03:00
Anderson Torres
dd1e49424f melpa-packages: updated 2023-02-21 (from overlay) 2023-02-21 08:03:50 -03:00
Anderson Torres
985265c451 elpa-packages: updated 2023-02-21 (from overlay) 2023-02-21 08:03:50 -03:00
Anderson Torres
ec82b6a6e2 nongnu-packages: updated 2023-02-20 (from overlay) 2023-02-21 08:01:28 -03:00
Anderson Torres
42556e233d melpa-packages: updated 2023-02-20 (from overlay) 2023-02-21 08:01:28 -03:00
Anderson Torres
c93adad021 elpa-packages: updated 2023-02-20 (from overlay) 2023-02-21 08:01:28 -03:00
Kim Lindberger
f4c4c9825a
Merge pull request #215647 from DamienCassou/emacs-melpa-epkg-sqlite
emacs.pkgs.melpaStablepackages.epkg: Add sqlite as dependency
2023-02-10 17:17:04 +01:00
Damien Cassou
be8dcd6bbf
emacs.pkgs.melpaStablepackages.epkg: Add sqlite as dependency 2023-02-10 08:47:41 +01:00
Mario Rodas
6bb4f0f103 emacs: use mkDerivation with finalAttrs
This will help the emacs overlays to correctly apply the native
compilation patch.
2023-02-04 04:20:00 +00:00
Adam Joseph
42815b4a0c treewide: systemdSupport: use lib.meta.availableOn
Many packages have some kind of flag indicating whether or not to build with
systemd support.  Most of these default to `stdenv.isLinux`, but systemd does
not build on (and is marked `broken` for) `isStatic`.  Only a few packages have
the needed `&& !isStatic` in the default value for their parameter.

This commit moves the logic for the default value of these flags into
`systemd.meta.{platforms,badPlatforms}` and evaluates those conditions using
`lib.meta.availableOn`.

This provides three benefits:

1. The default values are set correctly (i.e. including `&& isStatic`)

2. The default values are set consistently

3. The way is paved for any future non-Linux systemd platforms (FreeBSD is
   reported to have experimental systemd support)
2023-01-22 00:27:19 -08:00
Ferry Jérémie
65d7e87fdb treewide: replace http by https when https is a permanent redirection 2023-01-22 02:46:49 +01:00
Benjamin Orthen
b0850654ec emacsPackages.control-lock: use trivialBuild and correct src
Use trivialBuild instead of mkDerivation. Correct package src to link to
    raw file and and use correct hash.
2023-01-19 13:40:32 +01:00
Benjamin Orthen
210c48b466 emacsPackages.perl-completion: fix evaluation and mark as broken
perl-completion (https://www.emacswiki.org/emacs/perl-completion.el)
    depends on anything.el which is not in emacsPackages and has not
    seen any updates since 2017
2023-01-18 23:58:37 +01:00
Artturin
2eeb34c273 treewide: {build,host,target}Platform -> stdenv.{build,host,target}Platform 2023-01-09 21:13:22 +02:00
Guillaume Girol
df6a7e941a treewide: use bindgenhook where possible 2022-12-06 19:26:14 +01:00
adisbladis
879ad4a4c5
Merge pull request #204077 from r-ryantm/auto-update/emacs-ebuild-mode
emacsPackages.ebuild-mode: 1.60 -> 1.61
2022-12-03 02:18:35 +13:00
R. Ryantm
443c70789b emacsPackages.ebuild-mode: 1.60 -> 1.61 2022-12-02 09:49:52 +00:00
Sergei Trofimovich
8f88cd3f7a emacs: drop unused xlibsWrapper 2022-12-01 23:54:14 +00:00
Brian Leung
8ede52a7c1
emacs: change substituteInPlace invocation to an aligning patch
Commit 97b928ce09d6034ebcb541fb548e5d4862302add in Emacs
messed up the substituteInPlace. Use a patch instead to prevent silent failures.

https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=97b928ce09d6034ebcb541fb548e5d4862302add
2022-11-30 11:37:12 -08:00
Brian Leung
6dbbe21770
emacs: override built-in cl-print as null 2022-11-28 12:20:29 -08:00
Lassulus
88238ce44a
Merge pull request #201182 from thblt/image-format-libs-for-pgtk-emacs
emacs: build pgtk variant with full image support
2022-11-23 23:48:19 +01:00
Thibault Polge
b42d97f572
emacs: build pgtk variant with full image support
Emacs built with pgtk ("pure gtk") isn't X, so `withX` isn't true.
This commit extends the test conditions for format libraries inclusion
to withX || withPgtk, so Pgtk Emacs gets image format support
libraries as well.

Co-authored-by: Atemu <atemu.main@gmail.com>
2022-11-22 07:29:44 +01:00
AndersonTorres
25e04fc2b5 perl-completion: rewrite 2022-11-19 20:16:26 -03:00
AndersonTorres
e492d287b5 emacs manual-packages.nix: remove redundant nano-theme 2022-11-19 20:08:11 -03:00
AndersonTorres
75519d54a0 recipes-archive-melpa.json: updated 2022-11-19 2022-11-19 16:58:06 -03:00
AndersonTorres
7011353418 nongnu-generated.nix: updated 2022-11-19 2022-11-19 16:55:38 -03:00
AndersonTorres
51befefaa7 elpa-generated.nix: updated 2022-11-19 2022-11-19 15:45:21 -03:00
AndersonTorres
ca7d4c4d11 emacs/elisp-packages/manual-packages/tsc/update.py: fixup 2022-11-19 15:40:44 -03:00
Adam Joseph
0e2c58c77f
emacs: add withSystemd option 2022-11-14 23:05:55 +13:00
Anderson Torres
c364f9f3c3
Merge pull request #201017 from sternenseemann/ada-mode-fix-build
emacs.pkgs.ada-mode: fix build for version 7.3.1
2022-11-13 11:17:12 -03:00
sternenseemann
d09528373d emacs.pkgs.ada-mode: fix build for version 7.3.1
Fixes breakage to ada-mode introduced in #200190.

ada-mode recently gained a Makefile [1] which is intended for compiling
it in the ELPA worktree. Building from the ELPA release tarball still
needs to be done via build.sh, so we need to overwrite buildPhase to
ignore the Makefile (previously it'd just do nothing).

Additionally some new build tools are needed and lzip can be removed (as
we no longer fetch an archived version of wisi from ELPA).

[1]: https://git.savannah.gnu.org/cgit/emacs/elpa.git/commit/Makefile?h=externals/ada-mode&id=d5428433e39f3de7168fdc891127a2dcff849904
2022-11-13 13:29:27 +01:00
AndersonTorres
fed3699eb5 tree-sitter-langs: fixup update-defaults.py
The nix-shell line should always point out to the repo's `default.nix`.
2022-11-13 09:17:04 -03:00
AndersonTorres
03fa9cdde9 treewide: move all ad-hoc elisp packages to manual-packages/ 2022-11-13 09:17:04 -03:00