From a0e1081a1c72202e0705b8fdfd3cf5ff6555c665 Mon Sep 17 00:00:00 2001 From: whispers Date: Thu, 20 Aug 2026 13:08:09 -0400 Subject: [PATCH] clasp-common-lisp: 2.7.0 -> 3.0.1 https://github.com/clasp-developers/clasp/releases/tag/3.0.0 https://github.com/clasp-developers/clasp/releases/tag/3.0.1 --- pkgs/development/compilers/clasp/default.nix | 56 ++++++++++++------- .../remove-unused-command-line-argument.patch | 10 ++-- 2 files changed, 40 insertions(+), 26 deletions(-) diff --git a/pkgs/development/compilers/clasp/default.nix b/pkgs/development/compilers/clasp/default.nix index 270b3f279703..e3a955f8a2d1 100644 --- a/pkgs/development/compilers/clasp/default.nix +++ b/pkgs/development/compilers/clasp/default.nix @@ -1,30 +1,38 @@ { lib, - llvmPackages_18, + llvmPackages_22, fetchzip, + ninja, sbcl, pkg-config, - fmt_9, + writableTmpDirAsHomeHook, + boost, + fmt, gmpxx, libelf, - boost, - libunwind, - ninja, }: let - inherit (llvmPackages_18) stdenv llvm libclang; + inherit (llvmPackages_22) + stdenv + llvm + libclang + libunwind + ; in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "clasp"; - version = "2.7.0"; + version = "3.0.1"; src = fetchzip { - url = "https://github.com/clasp-developers/clasp/releases/download/${version}/clasp-${version}.tar.gz"; - hash = "sha256-IoEwsMvY/bbb6K6git+7zRGP0DIJDROt69FBQuzApRk="; + url = "https://github.com/clasp-developers/clasp/releases/download/${finalAttrs.version}/clasp-${finalAttrs.version}.tar.gz"; + hash = "sha256-C6FwbLz/kjBcuI3225TczWaInkbQ3chtDhWCYh+a/2E="; }; + __structuredAttrs = true; + strictDeps = true; + patches = [ ./remove-unused-command-line-argument.patch ]; @@ -35,16 +43,21 @@ stdenv.mkDerivation rec { ''; nativeBuildInputs = [ - sbcl - pkg-config - fmt_9 - gmpxx - libelf - boost - libunwind + llvm.dev ninja - llvm + pkg-config + sbcl + writableTmpDirAsHomeHook + ]; + + buildInputs = [ + boost + fmt + gmpxx libclang + libelf + libunwind + llvm ]; ninjaFlags = [ @@ -53,13 +66,13 @@ stdenv.mkDerivation rec { ]; configurePhase = '' + runHook preConfigure export SOURCE_DATE_EPOCH=1 - export ASDF_OUTPUT_TRANSLATIONS=$(pwd):$(pwd)/__fasls sbcl --script koga \ --skip-sync \ - --build-mode=bytecode-faso \ --cc=$NIX_CC/bin/cc \ --cxx=$NIX_CC/bin/c++ \ + --jobs=$NIX_BUILD_CORES \ --reproducible-build \ --package-path=/ \ --bin-path=$out/bin \ @@ -67,6 +80,7 @@ stdenv.mkDerivation rec { --dylib-path=$out/lib \ --share-path=$out/share \ --pkgconfig-path=$out/lib/pkgconfig + runHook postConfigure ''; postInstall = '' @@ -84,4 +98,4 @@ stdenv.mkDerivation rec { homepage = "https://github.com/clasp-developers/clasp"; mainProgram = "clasp"; }; -} +}) diff --git a/pkgs/development/compilers/clasp/remove-unused-command-line-argument.patch b/pkgs/development/compilers/clasp/remove-unused-command-line-argument.patch index b5c2d0bf39c3..dfac51b7598b 100644 --- a/pkgs/development/compilers/clasp/remove-unused-command-line-argument.patch +++ b/pkgs/development/compilers/clasp/remove-unused-command-line-argument.patch @@ -1,11 +1,11 @@ diff --git a/src/koga/units.lisp b/src/koga/units.lisp -index 808cebd17..2bbf965fd 100644 +index aa51d2bcd1..ef2ef48692 100644 --- a/src/koga/units.lisp +++ b/src/koga/units.lisp -@@ -197,7 +197,7 @@ - :type :cxxflags) - #+darwin (append-cflags configuration "-stdlib=libc++" :type :cxxflags) - #+darwin (append-cflags configuration "-I/usr/local/include") +@@ -224,7 +224,7 @@ + ;; prefix. Add it to the search path when present. + #+darwin (when (probe-file #P"/opt/homebrew/include/") + (append-cflags configuration "-I/opt/homebrew/include")) - #+linux (append-cflags configuration "-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fno-stack-protector -stdlib=libstdc++" + #+linux (append-cflags configuration "-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fno-stack-protector" :type :cxxflags)