Commit Graph

19 Commits

Author SHA1 Message Date
Thomas Gerbet
6bf6d4c64f nix-cl: avoid empty path segments in prefixed env variables 2026-07-25 13:27:09 +02:00
Fernando Rodrigues
05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
Wolfgang Walther
b19d0f6d3d treewide: replace substituteAll with replaceVars 2025-02-10 22:51:56 +01:00
Silvan Mosberger
667d42c00d treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 57b193d8dd
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:27:17 +01:00
Gavin Downard
11f94542fb lisp-modules: don't override source registry
Previously, using withPackages for a lisp would totally ignore any
of the default source registry entries, such as
$XDG_DATA_HOME/common-lisp/source. To keep those around, an empty string
must be added to CL_SOURCE_REGISTRY, as documented here:
https://asdf.common-lisp.dev/asdf.html#Shell_002dfriendly-syntax-for-configuration
2024-10-26 22:37:57 -07:00
Kasper Gałkowski
f6b9e011c5 cephes: update override to build with new version from quicklisp
embedded binaries are now removed from the source tree before build
2024-10-20 11:51:59 +02:00
Kasper Gałkowski
a490a01f74 sbclPackages.cl-gobject-introspection: apply patch for recent SBCL 2024-06-22 18:01:28 +02:00
Kasper Gałkowski
8cd61aa964 sbclPackages.cffi: use newest version from quicklisp 2024-06-22 18:01:28 +02:00
Kasper Gałkowski
fc43ded6ef lisp-modules: fix double prefix in wrapper pnames
sbcl-sbcl-with-packages -> sbcl-with-packages
2024-06-06 15:54:43 +02:00
Michael Raskin
6815a0077d nix-cl: provide the original pname as an attribute
Overrides often inherit pname from the overriden package, and if they
get the already-prefixed version, defaulting the systems list to [pname]
produces wrong (and unintuitive) results. So we keep the prefix in the
store paths for clarity, and nix-env sees disambiguated names with -i/-u
(which should not be used anyway); but overrides won't be broken.
2024-01-12 01:21:26 +01:00
Kasper Gałkowski
3189f73489 lisp-modules: Prepend Lisp name before package name for lisp pkgs
Similar to how python3.pkgs does it
https://github.com/NixOS/nixpkgs/issues/277571#issuecomment-1879892844
2024-01-10 01:47:26 +01:00
Artturin
b93da3f4b7 treewide: overrideScope' -> overrideScope
`lib.makeScope` `overrideScope'` has been renamed to `overrideScope`

`fd --type f | xargs sd --string-mode "overrideScope'" "overrideScope"`
2023-08-14 18:46:47 +03:00
Kasper Gałkowski
6817b72ca3 lisp-modules: set maintainers to the lisp team 2023-04-05 20:52:27 +02:00
Kasper Gałkowski
819d1d78e3 lisp-modules: use meta.mainProgram before pname 2023-03-15 19:06:47 +01:00
Kasper Gałkowski
bf643838f3 lisp-modules: fix typos 2023-03-15 19:06:13 +01:00
Kasper Gałkowski
dae0dca5d1 lisp-modules: second version of wrapLisp
The previous approach of trying to make both the `override` mechanism from
`mkDerivation` and the `overrideScope'` mechanism from `newScope` work together
resulted in hard to understand code, and there was a bug where once overridden
packages would lose the changes on next override with `packageOverrides`.

It's not ideal still, because Lisps created by `mkDerivation` will lose their
`pkgs` after using `override`.
2023-03-11 19:09:25 +01:00
Kasper Gałkowski
84eea85ad9 lisp-modules: use wrapLisp to wrap Lisps
The previous approach of manually repeating a complex pattern inside Common Lisp
implementation package declarations was fragile and hard to change. After
reading python and lua modules code in Nixpkgs, I was able to come up with
something better.

The function `wrapLisp` doesn't need to be inside package declarations so all
the code for wrapping Lisps can be in `all-packages.nix`.

This works by wrapping the `override` function created from `mkDerivation` to
accept a new argument `packageOverrides`.

One problem with this is that `override.__functionArgs` disappears. But one can
look at the source code of a package to discover what can be overridden.
2023-03-11 15:11:38 +01:00
Kasper Gałkowski
254765f3d2 lisp-modules: make spec.flags a list of strings 2023-03-02 19:04:47 +01:00
Kasper Gałkowski
9e860e41eb lisp-modules: init
From https://github.com/Uthar/nix-cl
Commit ebeb76057abf01029067f1ebe0ae6fae90848bfe
2023-03-02 19:04:47 +01:00