Unverified Commit a83337fa authored by Ryan Mulligan's avatar Ryan Mulligan Committed by GitHub
Browse files

shen-sbcl: 39.1 -> 39.2 (#442944)

parents 9672c13f a4103797
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -3,14 +3,15 @@
  stdenvNoCC,
  fetchzip,
  sbcl,
  installStandardLibrary ? true,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "shen-sbcl";
  version = "39.1";
  version = "39.2";

  src = fetchzip {
    url = "https://www.shenlanguage.org/Download/S${finalAttrs.version}.zip";
    hash = "sha256-reN9avgYGYCMiA5BeHLhRK51liKF2ctqIgxf+4IWjVY=";
    hash = "sha256-V6op0G4aEdKifP6L0ho6cy1FPNax+0aE5ltWxT7Xniw=";
  };

  nativeBuildInputs = [ sbcl ];
@@ -32,6 +33,18 @@ stdenvNoCC.mkDerivation (finalAttrs: {
    runHook postInstall
  '';

  postPatch = ''
    # allow SBCL to define *release* global
    substituteInPlace Primitives/globals.lsp \
      --replace-fail '"2.0.0"' '(LISP-IMPLEMENTATION-VERSION)'

    # remove interactive prompt during image creation
    substituteInPlace install.lsp \
      --replace-fail '(Y-OR-N-P "Load Shen Library? ")' '${
        if installStandardLibrary then "T" else "NIL"
      }'
  '';

  meta = {
    homepage = "https://shenlanguage.org";
    description = "Port of Shen running on Steel Bank Common Lisp";