about summary refs log tree commit diff
path: root/pkgs/development/compilers/sbcl
diff options
context:
space:
mode:
authorHraban Luyat <hraban@0brg.net>2024-02-01 12:54:54 -0500
committerHraban Luyat <hraban@0brg.net>2024-02-23 22:26:42 -0500
commit5e8a9aa362c28d2e30fd952a874d0696460eadc7 (patch)
tree4d80361211c72ed400fd19dfd70a2a7b8493133e /pkgs/development/compilers/sbcl
parentb9464efdb307f4994578bd11db1181d8768c598e (diff)
sbcl: include test binaries during checks
Diffstat (limited to 'pkgs/development/compilers/sbcl')
-rw-r--r--pkgs/development/compilers/sbcl/default.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/development/compilers/sbcl/default.nix b/pkgs/development/compilers/sbcl/default.nix
index b3a0bff021120..7ef7cd3201b1c 100644
--- a/pkgs/development/compilers/sbcl/default.nix
+++ b/pkgs/development/compilers/sbcl/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, callPackage, clisp, fetchurl, writeText, zstd
+{ lib, stdenv, callPackage, clisp, fetchurl, strace, texinfo, which, writeText, zstd
 , threadSupport ? (stdenv.hostPlatform.isx86 || "aarch64-linux" == stdenv.hostPlatform.system || "aarch64-darwin" == stdenv.hostPlatform.system)
 , linkableRuntime ? stdenv.hostPlatform.isx86
 , disableImmobileSpace ? false
@@ -8,7 +8,6 @@
 , purgeNixReferences ? false
 , coreCompression ? lib.versionAtLeast version "2.2.6"
 , markRegionGC ? lib.versionAtLeast version "2.4.0"
-, texinfo
 , version
   # Set this to a lisp binary to use a custom bootstrap lisp compiler for
   # SBCL. Leave as null to use the default. This is useful for local development
@@ -86,7 +85,15 @@ stdenv.mkDerivation (self: rec {
     inherit (versionMap.${version}) sha256;
   };
 
-  nativeBuildInputs = [ texinfo ];
+  nativeBuildInputs = [
+    texinfo
+  ] ++ lib.optionals self.doCheck (
+    [
+      which
+    ] ++ lib.optionals (builtins.elem stdenv.system strace.meta.platforms) [
+      strace
+    ]
+  );
   buildInputs = lib.optionals coreCompression [ zstd ];
 
   patches = lib.optionals (version == "2.4.0") [