Commit a3cb302b authored by Hraban Luyat's avatar Hraban Luyat
Browse files

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.
parent a4c77399
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -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
  '';
+0 −7
Original line number Diff line number Diff line
@@ -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";