aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/kinit-kdeinit-extra_libs.patch
blob: 1271f3df7deee87c9dbd8b8440a0946c23e25178 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Search the "extra libs" in GUIX_KF5INIT_LIB_PATH (which basically is a
collection of all /lib directories). We can not hard-code the full path to the
libsKF5Plasam, since adding palse-workspace

Adopted from NixOS
pkgs/development/libraries/kde-frameworks/kinit/kdeinit-extra_libs.patch

===================================================================
--- kinit-5.32.0/src/kdeinit/kinit-5.32.0/src/kdeinit/.orig
+++ kinit-5.32.0/src/kdeinit/kinit.cpp
@@ -96,9 +96,9 @@
     "libKF5Parts.5.dylib",
     "libKF5Plasma.5.dylib"
 #else
-    "libKF5KIOCore.so.5",
-    "libKF5Parts.so.5",
-    "libKF5Plasma.so.5"
+    "GUIX_PKGS_KF5_KIO/lib/libKF5KIOCore.so.5",
+    "GUIX_PKGS_KF5_PARTS/lib/libKF5Parts.so.5",
+    "GUIX_PKGS_KF5_PLASMA/lib/libKF5Plasma.so.5"
 #endif
 };
 #endif
@@ -1533,20 +1531,6 @@ static int initXconnection()
 }
 #endif
 
-#ifndef Q_OS_OSX
-// Find a shared lib in the lib dir, e.g. libkio.so.
-// Completely unrelated to plugins.
-static QString findSharedLib(const QString &lib)
-{
-    QString path = QFile::decodeName(CMAKE_INSTALL_PREFIX "/" LIB_INSTALL_DIR "/") + lib;
-    if (QFile::exists(path)) {
-        return path;
-    }
-    // We could also look in LD_LIBRARY_PATH, but really, who installs the main libs in different prefixes?
-    return QString();
-}
-#endif
-
 extern "C" {
 
     static void secondary_child_handler(int)
@@ -1673,7 +1673,7 @@
 #if defined(Q_OS_UNIX) && !defined(Q_OS_OSX)
     if (!d.suicide && qEnvironmentVariableIsEmpty("KDE_IS_PRELINKED")) {
         for (const char *extra_lib : extra_libs) {
-            const QString extra = findSharedLib(QString::fromLatin1(extra_lib));
+            const QString extra = QString::fromLatin1(extra_lib);
             if (!extra.isEmpty()) {
                 QLibrary l(extra);
                 l.setLoadHints(QLibrary::ExportExternalSymbolsHint);
"0iikd3l02nd0lgns33i95fzi7xh4hwzkng5r14lk0cmmr97phn6y")))) (build-system gnu-build-system) (outputs '("xpi" "firefox" "chromium")) (properties '((addon-id . "uBlock0@raymondhill.net"))) (arguments (list #:tests? #f ;no tests #:allowed-references '() #:phases #~(modify-phases (map (lambda (phase) (assq phase %standard-phases)) '(set-paths unpack patch-source-shebangs)) (add-after 'unpack 'do-not-depend-on-git (lambda _ (mkdir-p "dist/build/uAssets/main") (copy-recursively #$ublock-main-assets "dist/build/uAssets/main") (mkdir-p "dist/build/uAssets/prod") (copy-recursively #$ublock-prod-assets "dist/build/uAssets/prod"))) (add-after 'unpack 'make-files-writable (lambda _ ;; The build system copies some files and later tries ;; modifying them. (for-each make-file-writable (find-files ".")))) (add-after 'patch-source-shebangs 'build-xpi (lambda _ (invoke "./tools/make-firefox.sh" "all"))) (add-after 'build-xpi 'build-chromium (lambda _ (invoke "./tools/make-chromium.sh"))) (add-after 'build-chromium 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((addon-id #$(assq-ref properties 'addon-id)) (firefox (in-vicinity (assoc-ref outputs "firefox") addon-id)) (xpi (assoc-ref outputs "xpi")) (chromium (assoc-ref outputs "chromium"))) (install-file "dist/build/uBlock0.firefox.xpi" (string-append xpi "/lib/mozilla/extensions")) (copy-recursively "dist/build/uBlock0.firefox" firefox) (copy-recursively "dist/build/uBlock0.chromium" chromium))))))) (native-inputs (list python-wrapper zip)) (synopsis "Block unwanted content from web sites") (description "uBlock Origin is a @dfn{wide spectrum blocker} for IceCat and ungoogled-chromium.") (license license:gpl3+))) (define-public ublock-origin/chromium (make-chromium-extension ublock-origin "chromium")) (define-public ublock-origin/icecat (make-icecat-extension ublock-origin "firefox")) (define-public passff-host (package (name "passff-host") (version "1.2.4") (home-page "https://github.com/passff/passff-host") (source (origin (method git-fetch) (uri (git-reference (url home-page) (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1lcwa1qzfxlifmj33qndp1wgi6yx6vj21ir0az79vhm5k03p961z")))) (build-system copy-build-system) (arguments (let ((native-manifests "lib/icecat/native-messaging-hosts")) (list #:install-plan `'(("src" ,native-manifests #:include ("passff.json" "passff.py"))) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'substitute (lambda _ (substitute* "src/passff.json" (("PLACEHOLDER") (format #f "~a/~a/passff.py" #$output #$native-manifests))) (substitute* "src/passff.py" (("_VERSIONHOLDER_") #$version) (("^COMMAND = .*") (format #f "COMMAND = \"~a/bin/pass\"~%" #$(this-package-input "password-store")))) (patch-shebang "src/passff.py"))))))) (inputs (list password-store python)) (synopsis "Host app for the WebExtension PassFF") (description "This piece of software wraps around the zx2c4 pass shell command. It has to be installed for the PassFF browser extension to work properly.") (license license:gpl2+))) (define passff (package (name "passff") (version "1.16") (home-page "https://github.com/passff/passff") (source (origin (method git-fetch) (uri (git-reference (url home-page) (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0y3cbgy89lgvq6lfabp7mi1zhphdvihcccn3yw5mmaql9yrdm5kc")))) (propagated-inputs (list passff-host)) (build-system copy-build-system) (properties '((addon-id . "passff@invicem.pro"))) (arguments `(#:install-plan '(("src" ,(assq-ref properties 'addon-id))) #:phases (modify-phases %standard-phases (add-after 'unpack 'substitute-placeholder (lambda _ (substitute* "src/manifest.json" (("_VERSIONHOLDER_") ,version))))))) (synopsis "Pass management extension for Mozilla Firefox") (description "This extension will allow you to access your zx2c4 pass repository directly from your web browser. You can choose to automatically fill and submit login forms if a matching password entry is found.") (license license:gpl2+))) (define-public passff/icecat (make-icecat-extension passff)) (define keepassxc-browser (package (name "keepassxc-browser") (version "1.8.10") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/keepassxreboot/keepassxc-browser") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1059kcb95ig18izbchwlb7pz41l4l3vjwzlmhz3w8zw2qxm6hrvx")))) (build-system copy-build-system) (properties '((addon-id . "keepassxc-browser@keepassxc.org"))) (arguments `(#:install-plan '(("keepassxc-browser" ,(assq-ref properties 'addon-id))))) (synopsis "Browser extension for the KeePassXC password manager") (description "This package provides an extension allow the browser to work together with the @uref{https://keepassxc.org, KeePassXC} password manager.") (home-page "https://keepassxc.org") (license license:gpl3+))) (define-public keepassxc-browser/icecat (make-icecat-extension keepassxc-browser)) (define livemarks (package (name "livemarks") (version "3.5") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/nt1m/livemarks") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "02p2080lgnb2xy4n781ydjdywkg7g7hmz6cpnbh6icldbjy5xa5i")))) (build-system copy-build-system) (arguments (list #:install-plan #~'(("." #$(assq-ref (package-properties this-package) 'addon-id))))) (home-page "https://github.com/nt1m/livemarks") (synopsis "RSS feed bookmark folders") (description "This browser extension provides auto-updated RSS feed bookmark folders.") (license license:expat) (properties '((addon-id . "{c5867acc-54c9-4074-9574-04d8818d53e8}"))))) (define-public livemarks/icecat (make-icecat-extension livemarks)) (define noscript (package (name "noscript") (version "11.5.2") (source (origin (method url-fetch/zipbomb) (uri (string-append "https://noscript.net/download/releases/noscript-" version ".xpi")) (sha256 (base32 "0fj96c9pnjyg2dwqnnzd64vnx1inhl72c27ybm0j515zhijal2j6")))) (build-system copy-build-system) (properties '((addon-id . "{73a6fe31-595d-460b-a920-fcc0f8843232}"))) (arguments `(#:install-plan '(("." ,(assq-ref properties 'addon-id))))) (home-page "https://noscript.net") (synopsis "Software providing extra protection for various browsers") (description "The NoScript Security Suite is a software providing extra protection for web browsers.") (license license:gpl3+))) (define-public noscript/icecat (make-icecat-extension noscript)) (define privacy-redirect (package (name "privacy-redirect") (version "1.1.49") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/SimonBrazell/privacy-redirect") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "13j5i6vh4lq9hcqmqbmn8fnymnplwra5rm696h6magbjxnj3nkyz")))) (build-system copy-build-system) (arguments (list #:install-plan #~'(("src" #$(assq-ref (package-properties this-package) 'addon-id))))) (home-page "https://github.com/SimonBrazell/privacy-redirect") (synopsis "Redirect to privacy friendly alternative frontends") (description "This package provides a browser extension that redirects sites to their privacy friendly alternative frontends. It's possible to toggle all redirects on and off and the extension will default to using random instances if none are selected.") (license license:gpl3) (properties '((addon-id . "{b7f9d2cd-d772-4302-8c3f-eb941af36f76}"))))) (define-public privacy-redirect/icecat (make-icecat-extension privacy-redirect))