about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-08-21T13·54-0400
committerglittershark <grfn@gws.fyi>2020-08-23T22·21+0000
commit7a344fbb5e73701dff8fd15be6ede90d083d424e (patch)
tree534f3d950aac0f39927449f6cf766a9b3c05c5d0 /nix
parentd4824b64f6682ceab54fcbf8c0922143facb5aec (diff)
feat(nix/buildLisp): Expose an sbcl attribute r/1706
Expose an `sbcl` attribute on packages and programs, to allow for easier
development either with SLY or on a REPL.

Change-Id: Ide4d087a5223561e1fe192ef32dc593c54b5a20e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1834
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'nix')
-rw-r--r--nix/buildLisp/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/nix/buildLisp/default.nix b/nix/buildLisp/default.nix
index 98d626087008..9538f085299f 100644
--- a/nix/buildLisp/default.nix
+++ b/nix/buildLisp/default.nix
@@ -159,7 +159,7 @@ let
           expression = tests.expression;
         }
         else null;
-    in runCommandNoCC "${name}-cllib" {
+    in lib.fix (self: runCommandNoCC "${name}-cllib" {
       LD_LIBRARY_PATH = lib.makeLibraryPath lispNativeDeps;
       LANG = "C.UTF-8";
     } ''
@@ -181,7 +181,8 @@ let
       lispName = name;
       lispBinary = false;
       tests = testDrv;
-    };
+      sbcl = sbclWith [ self ];
+    });
 
   # 'program' creates an executable containing a dumped image of the
   # specified sources and dependencies.
@@ -210,7 +211,7 @@ let
           expression = tests.expression;
         }
         else null;
-    in runCommandNoCC "${name}" {
+    in lib.fix (self: runCommandNoCC "${name}" {
       nativeBuildInputs = [ makeWrapper ];
       LD_LIBRARY_PATH = libPath;
       LANG = "C.UTF-8";
@@ -231,7 +232,8 @@ let
       lispNativeDeps = native;
       lispBinary = true;
       tests = testDrv;
-    };
+      sbcl = sbclWith [ self ];
+    });
 
   # 'bundled' creates a "library" that calls 'require' on a built-in
   # package, such as any of SBCL's sb-* packages.