···133 in stdenv.mkDerivation (rec {
134 inherit pname version nativeLibs javaLibs lispLibs lisp systems asds;
135136- src = if builtins.length patches > 0
137- then apply-patches args
138- else args.src;
139-140 # When src is null, we are building a lispWithPackages and only
141 # want to make use of the dependency environment variables
142 # generated by build-asdf-system
···201 #
202 # NOTE: It's important to read files from `src` instead of
203 # from pwd to get go-to-definition working with SLIME
204- export CL_SOURCE_REGISTRY=$CL_SOURCE_REGISTRY:${src}//
205206 # Similiarily for native deps
207 export LD_LIBRARY_PATH=${makeLibraryPath nativeLibs}:$LD_LIBRARY_PATH
···209210 # Make asdf compile from `src` to pwd and load `lispLibs`
211 # from storeDir. Otherwise it could try to recompile lisp deps.
212- export ASDF_OUTPUT_TRANSLATIONS="${src}:$(pwd):${storeDir}:${storeDir}"
213214 # track lisp dependencies for graph generation
215 # TODO: Do the propagation like for lisp, native and java like this:
···248 dontStrip = true;
249 dontFixup = true;
250251- } // args));
252-253- # Need to do that because we always want to compile straight from
254- # `src` for go-to-definition to work in SLIME.
255- apply-patches = { patches, src, ... }:
256- stdenv.mkDerivation {
257- inherit patches src;
258- pname = "source";
259- version = "patched";
260- dontConfigure = true;
261- dontBuild = true;
262- dontStrip = true;
263- dontFixup = true;
264- installPhase = ''
265- mkdir -pv $out
266- cp -r * $out
267- '';
268- };
269270 # Build the set of lisp packages using `lisp`
271 # These packages are defined manually for one reason or another:
···133 in stdenv.mkDerivation (rec {
134 inherit pname version nativeLibs javaLibs lispLibs lisp systems asds;
1350000136 # When src is null, we are building a lispWithPackages and only
137 # want to make use of the dependency environment variables
138 # generated by build-asdf-system
···197 #
198 # NOTE: It's important to read files from `src` instead of
199 # from pwd to get go-to-definition working with SLIME
200+ export CL_SOURCE_REGISTRY=$CL_SOURCE_REGISTRY:$src//
201202 # Similiarily for native deps
203 export LD_LIBRARY_PATH=${makeLibraryPath nativeLibs}:$LD_LIBRARY_PATH
···205206 # Make asdf compile from `src` to pwd and load `lispLibs`
207 # from storeDir. Otherwise it could try to recompile lisp deps.
208+ export ASDF_OUTPUT_TRANSLATIONS="$src:$(pwd):${storeDir}:${storeDir}"
209210 # track lisp dependencies for graph generation
211 # TODO: Do the propagation like for lisp, native and java like this:
···244 dontStrip = true;
245 dontFixup = true;
246247+ } // (args // {
248+ src = if builtins.length (args.patches or []) > 0
249+ then pkgs.applyPatches { inherit (args) src patches; }
250+ else args.src;
251+ patches = [];
252+ })));
000000000000253254 # Build the set of lisp packages using `lisp`
255 # These packages are defined manually for one reason or another: