lol

Revert "sbclPackages: fix build of qt, qt-libs and qtools"

This reverts commit 422f1c24bd9ebb0c413d74bf11f28eb82441e525.

ajs124 10fdd2c9 5f9b7b33

-155
-100
pkgs/development/lisp-modules-new-obsolete/packages.nix
··· 11 11 optionals 12 12 hasSuffix 13 13 splitString 14 - remove 15 - optionalString 16 - stringLength 17 14 ; 18 15 19 16 # Used by builds that would otherwise attempt to write into storeDir. ··· 45 42 # Patches are already applied in `build` 46 43 patches = []; 47 44 src = build; 48 - # TODO(kasper): handle this with a setup hook 49 - LD_LIBRARY_PATH = 50 - build.LD_LIBRARY_PATH 51 - + (optionalString (stringLength build.LD_LIBRARY_PATH != 0) ":") 52 - + "${build}"; 53 45 }); 54 46 55 47 # A little hacky ··· 340 332 }; 341 333 version = "f19162e76"; 342 334 }); 343 - 344 - qt = let 345 - rev = "dffff3ee3dbd0686c85c323f579b8bbf4881e60e"; 346 - in build-with-compile-into-pwd rec { 347 - pname = "commonqt"; 348 - version = builtins.substring 0 7 rev; 349 - 350 - src = pkgs.fetchFromGitHub { 351 - inherit rev; 352 - owner = pname; 353 - repo = pname; 354 - hash = "sha256-GAgwT0D9mIkYPTHfCH/KxxIv7b6QGwcxwZE7ehH5xug="; 355 - }; 356 - 357 - buildInputs = [ pkgs.qt4 ]; 358 - nativeBuildInputs = [ pkgs.smokegen pkgs.smokeqt ]; 359 - nativeLibs = [ pkgs.qt4 pkgs.smokegen pkgs.smokeqt ]; 360 - 361 - systems = [ "qt" ]; 362 - 363 - lispLibs = with ql; [ 364 - cffi named-readtables cl-ppcre alexandria 365 - closer-mop iterate trivial-garbage bordeaux-threads 366 - ]; 367 335 }; 368 - 369 - qt-libs = build-with-compile-into-pwd { 370 - inherit (ql.qt-libs) pname version src; 371 - patches = [ ./patches/qt-libs-dont-download.patch ]; 372 - prePatch = '' 373 - substituteInPlace systems/*.asd --replace ":qt+libs" ":qt" 374 - echo "LD Path: $LD_LIBRARY_PATH" 375 - ''; 376 - lispLibs = ql.qt-libs.lispLibs ++ [ qt ]; 377 - systems = [ 378 - "qt-libs" 379 - "commonqt" 380 - # "phonon" 381 - # "qimageblitz" 382 - # "qsci" 383 - "qt3support" 384 - "qtcore" 385 - "qtdbus" 386 - "qtdeclarative" 387 - "qtgui" 388 - "qthelp" 389 - "qtnetwork" 390 - "qtopengl" 391 - "qtscript" 392 - "qtsql" 393 - "qtsvg" 394 - "qttest" 395 - "qtuitools" 396 - # "qtwebkit" 397 - "qtxml" 398 - "qtxmlpatterns" 399 - # "qwt" 400 - "smokebase" 401 - ]; 402 - }; 403 - commonqt = qt-libs; 404 - qt3support = qt-libs; 405 - qtcore = qt-libs; 406 - qtdbus = qt-libs; 407 - qtdeclarative = qt-libs; 408 - qtgui = qt-libs; 409 - qthelp = qt-libs; 410 - qtnetwork = qt-libs; 411 - qtopengl = qt-libs; 412 - qtscript = qt-libs; 413 - qtsql = qt-libs; 414 - qtsvg = qt-libs; 415 - qttest = qt-libs; 416 - qtuitools = qt-libs; 417 - qtxml = qt-libs; 418 - qtxmlpatterns = qt-libs; 419 - smokebase = qt-libs; 420 - 421 - qtools = build-with-compile-into-pwd { 422 - inherit (ql.qtools) pname version src nativeLibs; 423 - lispLibs = [ qt ] ++ remove ql.qt_plus_libs ql.qtools.lispLibs ++ [ qt-libs ]; 424 - patches = [ ./patches/qtools-use-nix-libs.patch ]; 425 - }; 426 - 427 - magicl = build-with-compile-into-pwd { 428 - inherit (ql.magicl) pname version src lispLibs; 429 - nativeBuildInputs = [ pkgs.gfortran ]; 430 - nativeLibs = [ pkgs.openblas ]; 431 - patches = [ ./patches/magicl-dont-build-fortran-twice.patch ]; 432 - }; 433 - 434 - }; 435 - 436 336 in packages
-36
pkgs/development/lisp-modules-new-obsolete/patches/qt-libs-dont-download.patch
··· 1 - --- a/qt-libs.asd 2 - +++ b/qt-libs.asd 3 - @@ -17,5 +17,4 @@ 4 - :components ((:file "qt-libs")) 5 - :depends-on (:qt-lib-generator 6 - :cl-ppcre 7 - - :cffi) 8 - - :perform (asdf:load-op :after (op c) (uiop:symbol-call :qt-libs :ensure-standalone-libs))) 9 - + :cffi)) 10 - --- a/qt-libs.lisp 11 - +++ b/qt-libs.lisp 12 - @@ -94,16 +94,14 @@ 13 - standalone-dir) 14 - 15 - (defun %ensure-lib-loaded (file) 16 - - (let ((file (etypecase file 17 - - (pathname file) 18 - - (string (installed-library-file file)))) 19 - - (name (intern (string-upcase (pathname-name file)))) 20 - - #+sbcl(sb-ext:*muffled-warnings* 'style-warning)) 21 - - (cffi::register-foreign-library 22 - - name `((T ,file)) 23 - - :search-path (to-directory file)) 24 - - (unless (cffi:foreign-library-loaded-p name) 25 - - (cffi:load-foreign-library name)))) 26 - + (let ((name (make-pathname :name (format nil "lib~a" file) 27 - + :type #+unix "so" 28 - + #+darwin "dylib"))) 29 - + (or (find-if (lambda (lib) 30 - + (equal (cffi:foreign-library-pathname lib) 31 - + (namestring name))) 32 - + (cffi:list-foreign-libraries)) 33 - + (cffi:load-foreign-library name)))) 34 - 35 - (defun ensure-lib-loaded (file) 36 - (cond ((pathnamep file)
-19
pkgs/development/lisp-modules/patches/qtools-use-nix-libs.patch
··· 1 - Dont use the qt+libs system for managing Qt dependencies, because Nix provides 2 - them already. 3 - Don't build the deploy.lisp helper file, because Nix also can handle deployment. 4 - --- a/qtools.asd 5 - +++ b/qtools.asd 6 - @@ -33,10 +33,9 @@ 7 - (:file "generate") 8 - (:file "dynamic") 9 - (:file "precompile") 10 - - (:file "deploy") 11 - (:file "fast-call") 12 - (:file "documentation")) 13 - - :depends-on (:qt+libs 14 - + :depends-on (:qt 15 - :deploy 16 - :cl-ppcre 17 - :closer-mop 18 - 19 - Diff finished. Sun Oct 2 14:38:06 2022