about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorajs124 <git@ajs124.de>2022-11-14 23:18:39 +0100
committerajs124 <git@ajs124.de>2023-09-04 13:55:30 +0200
commit10fdd2c9493d3431b0cb4dec4df206ae3a7526a5 (patch)
tree530cc061056c85a1c602959aa7595bc1fd87b631 /pkgs
parent5f9b7b331703922b50d91c371f0174ad43902173 (diff)
Revert "sbclPackages: fix build of qt, qt-libs and qtools"
This reverts commit 422f1c24bd9ebb0c413d74bf11f28eb82441e525.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/lisp-modules-new-obsolete/packages.nix100
-rw-r--r--pkgs/development/lisp-modules-new-obsolete/patches/qt-libs-dont-download.patch36
-rw-r--r--pkgs/development/lisp-modules/patches/qtools-use-nix-libs.patch19
3 files changed, 0 insertions, 155 deletions
diff --git a/pkgs/development/lisp-modules-new-obsolete/packages.nix b/pkgs/development/lisp-modules-new-obsolete/packages.nix
index 244d2f4b5b5f0..1c65a369f0e3c 100644
--- a/pkgs/development/lisp-modules-new-obsolete/packages.nix
+++ b/pkgs/development/lisp-modules-new-obsolete/packages.nix
@@ -11,9 +11,6 @@ let
     optionals
     hasSuffix
     splitString
-    remove
-    optionalString
-    stringLength
   ;
 
   # Used by builds that would otherwise attempt to write into storeDir.
@@ -45,11 +42,6 @@ let
       # Patches are already applied in `build`
       patches = [];
       src = build;
-      # TODO(kasper): handle this with a setup hook
-      LD_LIBRARY_PATH =
-        build.LD_LIBRARY_PATH
-        + (optionalString (stringLength build.LD_LIBRARY_PATH != 0) ":")
-        + "${build}";
     });
 
   # A little hacky
@@ -340,97 +332,5 @@ let
     };
     version = "f19162e76";
   });
-
-  qt = let
-    rev = "dffff3ee3dbd0686c85c323f579b8bbf4881e60e";
-  in build-with-compile-into-pwd rec {
-    pname = "commonqt";
-    version = builtins.substring 0 7 rev;
-
-    src = pkgs.fetchFromGitHub {
-      inherit rev;
-      owner = pname;
-      repo = pname;
-      hash = "sha256-GAgwT0D9mIkYPTHfCH/KxxIv7b6QGwcxwZE7ehH5xug=";
-    };
-
-    buildInputs = [ pkgs.qt4 ];
-    nativeBuildInputs = [ pkgs.smokegen pkgs.smokeqt ];
-    nativeLibs = [ pkgs.qt4 pkgs.smokegen pkgs.smokeqt ];
-
-    systems = [ "qt" ];
-
-    lispLibs = with ql; [
-      cffi named-readtables cl-ppcre alexandria
-      closer-mop iterate trivial-garbage bordeaux-threads
-    ];
-  };
-
-  qt-libs = build-with-compile-into-pwd {
-    inherit (ql.qt-libs) pname version src;
-    patches = [ ./patches/qt-libs-dont-download.patch ];
-    prePatch = ''
-      substituteInPlace systems/*.asd --replace ":qt+libs" ":qt"
-      echo "LD Path: $LD_LIBRARY_PATH"
-    '';
-    lispLibs = ql.qt-libs.lispLibs ++ [ qt ];
-    systems = [
-      "qt-libs"
-      "commonqt"
-      # "phonon"
-      # "qimageblitz"
-      # "qsci"
-      "qt3support"
-      "qtcore"
-      "qtdbus"
-      "qtdeclarative"
-      "qtgui"
-      "qthelp"
-      "qtnetwork"
-      "qtopengl"
-      "qtscript"
-      "qtsql"
-      "qtsvg"
-      "qttest"
-      "qtuitools"
-      # "qtwebkit"
-      "qtxml"
-      "qtxmlpatterns"
-      # "qwt"
-      "smokebase"
-    ];
   };
-  commonqt = qt-libs;
-  qt3support = qt-libs;
-  qtcore = qt-libs;
-  qtdbus = qt-libs;
-  qtdeclarative = qt-libs;
-  qtgui = qt-libs;
-  qthelp = qt-libs;
-  qtnetwork = qt-libs;
-  qtopengl = qt-libs;
-  qtscript = qt-libs;
-  qtsql = qt-libs;
-  qtsvg = qt-libs;
-  qttest = qt-libs;
-  qtuitools = qt-libs;
-  qtxml = qt-libs;
-  qtxmlpatterns = qt-libs;
-  smokebase = qt-libs;
-
-  qtools = build-with-compile-into-pwd {
-    inherit (ql.qtools) pname version src nativeLibs;
-    lispLibs = [ qt ] ++ remove ql.qt_plus_libs ql.qtools.lispLibs ++ [ qt-libs ];
-    patches = [ ./patches/qtools-use-nix-libs.patch ];
-  };
-
-  magicl = build-with-compile-into-pwd {
-    inherit (ql.magicl) pname version src lispLibs;
-    nativeBuildInputs = [ pkgs.gfortran ];
-    nativeLibs = [ pkgs.openblas ];
-    patches = [ ./patches/magicl-dont-build-fortran-twice.patch ];
-  };
-
-  };
-
 in packages
diff --git a/pkgs/development/lisp-modules-new-obsolete/patches/qt-libs-dont-download.patch b/pkgs/development/lisp-modules-new-obsolete/patches/qt-libs-dont-download.patch
deleted file mode 100644
index e21a44c2a17d1..0000000000000
--- a/pkgs/development/lisp-modules-new-obsolete/patches/qt-libs-dont-download.patch
+++ /dev/null
@@ -1,36 +0,0 @@
---- a/qt-libs.asd
-+++ b/qt-libs.asd
-@@ -17,5 +17,4 @@
-   :components ((:file "qt-libs"))
-   :depends-on (:qt-lib-generator
-                :cl-ppcre
--               :cffi)
--  :perform (asdf:load-op :after (op c) (uiop:symbol-call :qt-libs :ensure-standalone-libs)))
-+               :cffi))
---- a/qt-libs.lisp
-+++ b/qt-libs.lisp
-@@ -94,16 +94,14 @@
-   standalone-dir)
-
- (defun %ensure-lib-loaded (file)
--  (let ((file (etypecase file
--                (pathname file)
--                (string (installed-library-file file))))
--        (name (intern (string-upcase (pathname-name file))))
--        #+sbcl(sb-ext:*muffled-warnings* 'style-warning))
--    (cffi::register-foreign-library
--     name `((T ,file))
--     :search-path (to-directory file))
--    (unless (cffi:foreign-library-loaded-p name)
--      (cffi:load-foreign-library name))))
-+ (let ((name (make-pathname :name (format nil "lib~a" file)
-+                             :type #+unix "so"
-+                                   #+darwin "dylib")))
-+    (or (find-if (lambda (lib)
-+                   (equal (cffi:foreign-library-pathname lib)
-+                          (namestring name)))
-+                 (cffi:list-foreign-libraries))
-+        (cffi:load-foreign-library name))))
-
- (defun ensure-lib-loaded (file)
-   (cond ((pathnamep file)
\ No newline at end of file
diff --git a/pkgs/development/lisp-modules/patches/qtools-use-nix-libs.patch b/pkgs/development/lisp-modules/patches/qtools-use-nix-libs.patch
deleted file mode 100644
index b380894b04a83..0000000000000
--- a/pkgs/development/lisp-modules/patches/qtools-use-nix-libs.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-Dont use the qt+libs system for managing Qt dependencies, because Nix provides
-them already.
-Don't build the deploy.lisp helper file, because Nix also can handle deployment.
---- a/qtools.asd
-+++ b/qtools.asd
-@@ -33,10 +33,9 @@
-                (:file "generate")
-                (:file "dynamic")
-                (:file "precompile")
--               (:file "deploy")
-                (:file "fast-call")
-                (:file "documentation"))
--  :depends-on (:qt+libs
-+  :depends-on (:qt
-                :deploy
-                :cl-ppcre
-                :closer-mop
-
-Diff finished.  Sun Oct  2 14:38:06 2022
\ No newline at end of file