9 stdenv.mkDerivation rec {
10 pname = "sbcl-bootstrap";
11 inherit (cfg) version;
14 url = "mirror://sourceforge/project/sbcl/sbcl/${version}/sbcl-${version}-${cfg.system}-binary.tar.bz2";
18 nativeBuildInputs = [ makeWrapper ];
22 cp -p src/runtime/sbcl $out/bin
24 mkdir -p $out/share/sbcl
25 cp -p src/runtime/sbcl $out/share/sbcl
26 cp -p output/sbcl.core $out/share/sbcl
28 makeWrapper $out/share/sbcl/sbcl $out/bin/sbcl \
29 --add-flags "--core $out/share/sbcl/sbcl.core"
32 postFixup = lib.optionalString (!stdenv.hostPlatform.isAarch32 && stdenv.hostPlatform.isLinux) ''
33 patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $out/share/sbcl/sbcl
36 meta.sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];