refactor: don’t expose sbcl 2.1.9 to all-packages

Only give access to it when explicitly requested by CLPM. This prevents
polluting all-packages namespace with a deprecated package.
This commit is contained in:
Hraban Luyat 2023-04-11 13:55:29 -04:00
parent a4c773993a
commit a3cb302b8a
2 changed files with 12 additions and 13 deletions

View File

@ -2,14 +2,20 @@
, stdenv
, fetchgit
, wrapLisp
# Broken on newer versions:
# https://gitlab.common-lisp.net/clpm/clpm/-/issues/51
# Once that bug is fixed, replace this with regular sbcl and remove all
# references to sbcl 2.1.9 from nixpkgs, including from sbcl/2.x.nix.
, _sbcl_2_1_9
, openssl
, sbcl
}:
# Broken on newer versions:
# "https://gitlab.common-lisp.net/clpm/clpm/-/issues/51". Once that bug is
# fixed, remove this, and all 2.1.9 references from the SBCL build file.
with rec {
sbcl_2_1_9 = sbcl.override (_: {
version = "2.1.9";
});
};
stdenv.mkDerivation rec {
pname = "clpm";
version = "0.4.1";
@ -40,7 +46,7 @@ stdenv.mkDerivation rec {
# ld to complaing about `impure path used in link`.
export HOME=$TMP
${_sbcl_2_1_9}/bin/sbcl --script scripts/build-release.lisp
${sbcl_2_1_9}/bin/sbcl --script scripts/build-release.lisp
runHook postBuild
'';

View File

@ -24570,13 +24570,6 @@ with pkgs;
pkg = callPackage ../development/compilers/sbcl/bootstrap.nix {};
faslExt = "fasl";
};
# This is a deprecated derivation, marked internal to avoid third party
# packages depending on it. It is used for CLPM only, and will be removed
# soon.
_sbcl_2_1_9 = wrapLisp {
pkg = callPackage ../development/compilers/sbcl/2.x.nix { version = "2.1.9"; };
faslExt = "fasl";
};
sbcl_2_2_11 = wrapLisp {
pkg = callPackage ../development/compilers/sbcl/2.x.nix { version = "2.2.11"; };
faslExt = "fasl";