Commit Graph

13 Commits

Author SHA1 Message Date
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