16 inherit (llvmPackages_15) stdenv llvm libclang;
19 stdenv.mkDerivation rec {
24 url = "https://github.com/clasp-developers/clasp/releases/download/${version}/clasp-${version}.tar.gz";
25 hash = "sha256-SiQ4RMha6dMV7V2fh+UxtAIgEEH/6/hF9fe+bPtoGIw=";
29 ./remove-unused-command-line-argument.patch
32 # Workaround for https://github.com/clasp-developers/clasp/issues/1590
34 echo '(defmethod configure-unit (c (u (eql :git))))' >> src/koga/units.lisp
50 ninjaFlags = [ "-C" "build" ];
53 export SOURCE_DATE_EPOCH=1
54 export ASDF_OUTPUT_TRANSLATIONS=$(pwd):$(pwd)/__fasls
57 --build-mode=bytecode-faso \
59 --cxx=$NIX_CC/bin/c++ \
60 --reproducible-build \
64 --share-path=$out/share
68 description = "Common Lisp implementation based on LLVM with C++ integration";
69 license = lib.licenses.lgpl21Plus ;
70 maintainers = lib.teams.lisp.members;
71 platforms = ["x86_64-linux" "x86_64-darwin"];
72 # Upstream claims support, but breaks with:
73 # error: use of undeclared identifier 'aligned_alloc'
74 broken = stdenv.isDarwin;
75 homepage = "https://github.com/clasp-developers/clasp";
76 mainProgram = "clasp";