about summary refs log tree commit diff
path: root/pkgs/development/compilers/clasp
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/clasp')
-rw-r--r--pkgs/development/compilers/clasp/default.nix78
-rw-r--r--pkgs/development/compilers/clasp/remove-unused-command-line-argument.patch13
2 files changed, 0 insertions, 91 deletions
diff --git a/pkgs/development/compilers/clasp/default.nix b/pkgs/development/compilers/clasp/default.nix
deleted file mode 100644
index 0d27b9f62c8a..000000000000
--- a/pkgs/development/compilers/clasp/default.nix
+++ /dev/null
@@ -1,78 +0,0 @@
-{ lib
-, llvmPackages_15
-, fetchzip
-, sbcl
-, pkg-config
-, fmt_9
-, gmpxx
-, libelf
-, boost
-, libunwind
-, ninja
-, cacert
-}:
-
-let
-  inherit (llvmPackages_15) stdenv llvm libclang;
-in
-
-stdenv.mkDerivation rec {
-  pname = "clasp";
-  version = "2.6.0";
-
-  src = fetchzip {
-    url = "https://github.com/clasp-developers/clasp/releases/download/${version}/clasp-${version}.tar.gz";
-    hash = "sha256-SiQ4RMha6dMV7V2fh+UxtAIgEEH/6/hF9fe+bPtoGIw=";
-  };
-
-  patches = [
-    ./remove-unused-command-line-argument.patch
-  ];
-
-  # Workaround for https://github.com/clasp-developers/clasp/issues/1590
-  postPatch = ''
-    echo '(defmethod configure-unit (c (u (eql :git))))' >> src/koga/units.lisp
-  '';
-
-  nativeBuildInputs = [
-    sbcl
-    pkg-config
-    fmt_9
-    gmpxx
-    libelf
-    boost
-    libunwind
-    ninja
-    llvm
-    libclang
-  ];
-
-  ninjaFlags = [ "-C" "build" ];
-
-  configurePhase = ''
-    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++ \
-      --reproducible-build \
-      --package-path=/ \
-      --bin-path=$out/bin \
-      --lib-path=$out/lib \
-      --share-path=$out/share
-  '';
-
-  meta = {
-    description = "Common Lisp implementation based on LLVM with C++ integration";
-    license = lib.licenses.lgpl21Plus ;
-    maintainers = lib.teams.lisp.members;
-    platforms = ["x86_64-linux" "x86_64-darwin"];
-    # Upstream claims support, but breaks with:
-    # error: use of undeclared identifier 'aligned_alloc'
-    broken = stdenv.isDarwin;
-    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
deleted file mode 100644
index b5c2d0bf39c3..000000000000
--- a/pkgs/development/compilers/clasp/remove-unused-command-line-argument.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/src/koga/units.lisp b/src/koga/units.lisp
-index 808cebd17..2bbf965fd 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")
--  #+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)
-   #+linux (append-cflags configuration "-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fno-stack-protector"
-                                        :type :cflags)