Skip to content

Commit

Permalink
sbcl: update to 2.1.2 and add arm64-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
kloenk committed Mar 14, 2021
1 parent abe9007 commit 49d2ad0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/compilers/sbcl/bootstrap.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

let
options = rec {
aarch64-darwin = {
version = "2.1.2";
system = "arm64-darwin";
sha256 = "sha256-H0ALigXcWIypdA+fTf7jERscwbb7QIAfcoxCtGDh0RU=";
};
x86_64-darwin = {
version = "1.2.11";
system = "x86-64-darwin";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/compilers/sbcl/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{ lib, stdenv, fetchurl, writeText, sbclBootstrap
, sbclBootstrapHost ? "${sbclBootstrap}/bin/sbcl --disable-debugger --no-userinit --no-sysinit"
, threadSupport ? (stdenv.isi686 || stdenv.isx86_64 || "aarch64-linux" == stdenv.hostPlatform.system)
, threadSupport ? (stdenv.isi686 || stdenv.isx86_64 || "aarch64-linux" == stdenv.hostPlatform.system || "aarch64-darwin" == stdenv.hostPlatform.system)
, disableImmobileSpace ? false
# Meant for sbcl used for creating binaries portable to non-NixOS via save-lisp-and-die.
# Note that the created binaries still need `patchelf --set-interpreter ...`
Expand Down Expand Up @@ -79,7 +79,7 @@ stdenv.mkDerivation rec {
lib.concatStringsSep " "
(builtins.map (x: "--with-${x}") enableFeatures ++
builtins.map (x: "--without-${x}") disableFeatures)
}
} ${if stdenv.hostPlatform.system == "aarch64-darwin" then "--arch=arm64" else ""}
(cd doc/manual ; make info)
runHook postBuild
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/compilers/sbcl/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ./common.nix {
version = "2.0.8";
sha256 = "1xwrwvps7drrpyw3wg5h3g2qajmkwqs9gz0fdw1ns9adp7vld390";
version = "2.1.2";
sha256 = "sha256-t3EFUJOYVe1JWYxKAUSD7RILaZFliio7avpHcT3OTAs=";
}

0 comments on commit 49d2ad0

Please sign in to comment.