aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (build-self)
  #:use-module (gnu)
  #:use-module (guix)
  #:use-module (guix ui)
  #:use-module (guix config)
  #:use-module (guix modules)
  #:use-module (guix build-system gnu)
  #:use-module (srfi srfi-1)
  #:use-module (srfi srfi-19)
  #:use-module (srfi srfi-34)
  #:use-module (srfi srfi-35)
  #:use-module (rnrs io ports)
  #:use-module (ice-9 match)
  #:use-module (ice-9 popen)
  #:export (build))

;;; Commentary:
;;;
;;; When loaded, this module returns a monadic procedure of at least one
;;; argument: the source tree to build.  It returns a derivation that
;;; builds it.
;;;
;;; This file uses modules provided by the already-installed Guix.  Those
;;; modules may be arbitrarily old compared to the version we want to
;;; build.  Because of that, it must rely on the smallest set of features
;;; that are likely to be provided by the (guix) and (gnu) modules, and by
;;; Guile itself, forever and ever.
;;;
;;; Code:


;;;
;;; Generating (guix config).
;;;
;;; This is copied from (guix self) because we cannot assume (guix self) is
;;; available at this point.
;;;

(define %persona-variables
  ;; (guix config) variables that define Guix's persona.
  '(%guix-package-name
    %guix-version
    %guix-bug-report-address
    %guix-home-page-url))

(define %config-variables
  ;; (guix config) variables corresponding to Guix configuration.
  (letrec-syntax ((variables (syntax-rules ()
                               ((_)
                                '())
                               ((_ variable rest ...)
                                (cons `(variable . ,variable)
                                      (variables rest ...))))))
    (variables %localstatedir %storedir %sysconfdir %system)))

(define* (make-config.scm #:key gzip xz bzip2
                          (package-name "GNU Guix")
                          (package-version "0")
                          (bug-report-address "bug-guix@gnu.org")
                          (home-page-url "https://guix.gnu.org"))

  ;; Hack so that Geiser is not confused.
  (define defmod 'define-module)

  (scheme-file "config.scm"
               #~(begin
                   (#$defmod (guix config)
                     #:export (%guix-package-name
                               %guix-version
                               %guix-bug-report-address
                               %guix-home-page-url
                               %store-directory
                               %state-directory
                               %store-database-directory
                               %config-directory
                               %libz
                               %gzip
                               %bzip2
                               %xz))

                   ;; XXX: Work around <http://bugs.gnu.org/15602>.
                   (eval-when (expand load eval)
                     #$@(map (match-lambda
                               ((name . value)
                                #~(define-public #$name #$value)))
                             %config-variables)

                     (define %store-directory
                       (or (and=> (getenv "NIX_STORE_DIR") canonicalize-path)
                           %storedir))

                     (define %state-directory
                       ;; This must match `NIX_STATE_DIR' as defined in
                       ;; `nix/local.mk'.
                       (or (getenv "GUIX_STATE_DIRECTORY")
                           (string-append %localstatedir "/guix")))

                     (define %store-database-directory
                       (or (getenv "GUIX_DATABASE_DIRECTORY")
                           (string-append %state-directory "/db")))

                     (define %config-directory
                       ;; This must match `GUIX_CONFIGURATION_DIRECTORY' as
                       ;; defined in `nix/local.mk'.
                       (or (getenv "GUIX_CONFIGURATION_DIRECTORY")
                           (string-append %sysconfdir "/guix")))

                     (define %guix-package-name #$package-name)
                     (define %guix-version #$package-version)
                     (define %guix-bug-report-address #$bug-report-address)
                     (define %guix-home-page-url #$home-page-url)

                     (define %gzip
                       #+(and gzip (file-append gzip "/bin/gzip")))
                     (define %bzip2
                       #+(and bzip2 (file-append bzip2 "/bin/bzip2")))
                     (define %xz
                       #+(and xz (file-append xz "/bin/xz")))))))


;;;
;;; 'gexp->script'.
;;;
;;; This is our own variant of 'gexp->script' with an extra #:module-path
;;; parameter, which was unavailable in (guix gexp) until commit
;;; 1ae16033f34cebe802023922436883867010850f (March 2018.)
;;;

(define (load-path-expression modules path)
  "Return as a monadic value a gexp that sets '%load-path' and
'%load-compiled-path' to point to MODULES, a list of module names.  MODULES
are searched for in PATH."
  (mlet %store-monad ((modules  (imported-modules modules
                                                  #:module-path path))
                      (compiled (compiled-modules modules
                                                  #:module-path path)))
    (return (gexp (eval-when (expand load eval)
                    (set! %load-path
                      (cons (ungexp modules) %load-path))
                    (set! %load-compiled-path
                      (cons (ungexp compiled)
                            %load-compiled-path)))))))

(define* (gexp->script name exp
                       #:key (guile (default-guile))
                       (module-path %load-path))
  "Return an executable script NAME that runs EXP using GUILE, with EXP's
imported modules in its search path."
  (mlet %store-monad ((set-load-path
                       (load-path-expression (gexp-modules exp)
                                             module-path)))
    (gexp->derivation name
                      (gexp
                       (call-with-output-file (ungexp output)
                         (lambda (port)
                           ;; Note: that makes a long shebang.  When the store
                           ;; is /gnu/store, that fits within the 128-byte
                           ;; limit imposed by Linux, but that may go beyond
                           ;; when running tests.
                           (format port
                                   "#!~a/bin/guile --no-auto-compile~%!#~%"
                                   (ungexp guile))

                           (write '(ungexp set-load-path) port)
                           (write '(ungexp exp) port)
                           (chmod port #o555))))
                      #:module-path module-path)))


(define (date-version-string)
  "Return the current date and hour in UTC timezone, for use as a poor
person's version identifier."
  ;; XXX: Replace with a Git commit id.
  (date->string (current-date 0) "~Y~m~d.~H"))

(define guile-gcrypt
  ;; The host Guix may or may not have 'guile-gcrypt', which was introduced in
  ;; August 2018.  If it has it, it's at least version 0.1.0, which is good
  ;; enough.  If it doesn't, specify our own package because the target Guix
  ;; requires it.
  (match (find-best-packages-by-name "guile-gcrypt" #f)
    (()
     (package
       (name "guile-gcrypt")
       (version "0.1.0")
       (home-page "https://notabug.org/cwebber/guile-gcrypt")
       (source (origin
                 (method url-fetch)
                 (uri (string-append home-page "/archive/v" version ".tar.gz"))
                 (sha256
                  (base32
                   "1gir7ifknbmbvjlql5j6wzk7bkb5lnmq80q59ngz43hhpclrk5k3"))
                 (file-name (string-append name "-" version ".tar.gz"))))
       (build-system gnu-build-system)
       (arguments
        ;; The 'bootstrap' phase appeared in 'core-updates', which was merged
        ;; into 'master' ca. June 2018.
        '(#:phases (modify-phases %standard-phases
                     (delete 'bootstrap)
                     (add-before 'configure 'bootstrap
                       (lambda _
                         (unless (zero? (system* "autoreconf" "-vfi"))
                           (error "autoreconf failed"))
                         #t)))))
       (native-inputs
        `(("pkg-config" ,(specification->package "pkg-config"))
          ("autoconf" ,(specification->package "autoconf"))
          ("automake" ,(specification->package "automake"))
          ("texinfo" ,(specification->package "texinfo"))))
       (inputs
        `(("guile" ,(specification->package "guile"))
          ("libgcrypt" ,(specification->package "libgcrypt"))))
       (synopsis "Cryptography library for Guile using Libgcrypt")
       (description
        "Guile-Gcrypt provides a Guile 2.x interface to a subset of the
GNU Libgcrypt crytographic library.  It provides modules for cryptographic
hash functions, message authentication codes (MAC), public-key cryptography,
strong randomness, and more.  It is implemented using the foreign function
interface (FFI) of Guile.")
       (license #f)))                             ;license:gpl3+
    ((package . _)
     package)))

(define* (build-program source version
                        #:optional (guile-version (effective-version))
                        #:key (pull-version 0) (channel-metadata #f)
                        built-in-builders)
  "Return a program that computes the derivation to build Guix from SOURCE.
If BUILT-IN-BUILDERS is provided, it should be a list of
strings and this will be used instead of the builtin builders provided by the
build daemon, from within the generated build program."
  (define select?
    ;; Select every module but (guix config) and non-Guix modules.
    ;; Also exclude (guix channels): it is autoloaded by (guix describe), but
    ;; only for peripheral functionality.
    (match-lambda
      (('guix 'config) #f)
      (('guix 'channels) #f)
      (('guix 'build 'download) #f)             ;autoloaded by (guix download)
      (('guix _ ...)   #t)
      (('gnu _ ...)    #t)
      (_               #f)))

  (define fake-gcrypt-hash
    ;; Fake (gcrypt hash) module; see below.
    (scheme-file "hash.scm"
                 #~(define-module (gcrypt hash)
                     #:export (sha1 sha256))))

  (define fake-git
    (scheme-file "git.scm" #~(define-module (git))))

  (with-imported-modules `(((guix config)
                            => ,(make-config.scm))

                           ;; To avoid relying on 'with-extensions', which was
                           ;; introduced in 0.15.0, provide a fake (gcrypt
                           ;; hash) just so that we can build modules, and
                           ;; adjust %LOAD-PATH later on.
                           ((gcrypt hash) => ,fake-gcrypt-hash)

                           ;; (guix git-download) depends on (git) but only
                           ;; for peripheral functionality.  Provide a dummy
                           ;; (git) to placate it.
                           ((git) => ,fake-git)

                           ,@(source-module-closure `((guix store)
                                                      (guix self)
                                                      (guix derivations)
                                                      (gnu packages bootstrap))
                                                    (list source)
                                                    #:select? select?))
    (gexp->script "compute-guix-derivation"
                  #~(begin
                      (use-modules (ice-9 match))

                      (eval-when (expand load eval)
                        ;; (gnu packages …) modules are going to be looked up
                        ;; under SOURCE.  (guix config) is looked up in FRONT.
                        (match (command-line)
                          ((_ source _ ...)
                           (match %load-path
                             ((front _ ...)
                              (unless (string=? front source) ;already done?
                                (set! %load-path
                                  (list source
                                        (string-append #$guile-gcrypt
                                                       "/share/guile/site/"
                                                       (effective-version))
                                        front)))))))

                        ;; Only load Guile-Gcrypt, our own modules, or those
                        ;; of Guile.
                        (set! %load-compiled-path
                          (cons (string-append #$guile-gcrypt "/lib/guile/"
                                               (effective-version)
                                               "/site-ccache")
                                %load-compiled-path))

                        ;; Disable position recording to save time and space
                        ;; when loading the package modules.
                        (read-disable 'positions))

                      (use-modules (guix store)
                                   (guix self)
                                   (guix derivations)
                                   (srfi srfi-1))

                      (match (command-line)
                        ((_ source system version protocol-version
                            build-output)
                         ;; The current input port normally wraps a file
                         ;; descriptor connected to the daemon, or it is
                         ;; connected to /dev/null.  In the former case, reuse
                         ;; the connection such that we inherit build options
                         ;; such as substitute URLs and so on; in the latter
                         ;; case, attempt to open a new connection.
                         (let* ((proto (string->number protocol-version))
                                (store (if (integer? proto)
                                           (port->connection
                                            (duplicate-port
                                             (current-input-port)
                                             "w+0")
                                            #:version proto
                                            #:built-in-builders
                                            '#$built-in-builders)
                                           (open-connection
                                            #:built-in-builders
                                            '#$built-in-builders)))
                                (sock  (socket AF_UNIX SOCK_STREAM 0)))
                           ;; Connect to BUILD-OUTPUT and send it the raw
                           ;; build output.
                           (connect sock AF_UNIX build-output)

                           (display
                            (and=>
                             ;; Silence autoload warnings and the likes.
                             (parameterize ((current-warning-port
                                             (%make-void-port "w"))
                                            (current-build-output-port sock))
                               (run-with-store store
                                 (guix-derivation source version
                                                  #$guile-version
                                                  #:channel-metadata
                                                  '#$channel-metadata
                                                  #:pull-version
                                                  #$pull-version)
                                 #:system system))
                             derivation-file-name))))))
                  #:module-path (list source))))

(define (proxy input output)
  "Dump the contents of INPUT to OUTPUT until EOF is reached on INPUT.
Display a spinner when nothing happens."
  (define spin
    (circular-list "-" "\\" "|" "/" "-" "\\" "|" "/"))

  (setvbuf input 'block 16384)
  (let loop ((spin spin))
    (match (select (list input) '() '() 1)
      ((() () ())
       (when (isatty? (current-error-port))
         (display (string-append "\b" (car spin))
                  (current-error-port))
         (force-output (current-error-port)))
       (loop (cdr spin)))
      (((_) () ())
       ;; Read from INPUT as much as can be read without blocking.
       (let ((bv (get-bytevector-some input)))
         (unless (eof-object? bv)
           (put-bytevector output bv)
           (loop spin)))))))

(define (call-with-clean-environment thunk)
  (let ((env (environ)))
    (dynamic-wind
      (lambda ()
        (environ '()))
      thunk
      (lambda ()
        (environ env)))))

(define-syntax-rule (with-clean-environment exp ...)
  "Evaluate EXP in a context where zero environment variables are defined."
  (call-with-clean-environment (lambda () exp ...)))

;; The procedure below is our return value.
(define* (build source
                #:key verbose?
                (version (date-version-string)) channel-metadata
                system
                (pull-version 0)

                ;; For the standalone Guix, default to Guile 3.0.  For old
                ;; versions of 'guix pull' (pre-0.15.0), we have to use the
                ;; same Guile as the current one.
                (guile-version (if (> pull-version 0)
                                   "3.0"
                                   (effective-version)))
                built-in-builders
                #:allow-other-keys
                #:rest rest)
  "Return a derivation that unpacks SOURCE into STORE and compiles Scheme
files."
  ;; Build the build program and then use it as a trampoline to build from
  ;; SOURCE.
  (mlet %store-monad ((build  (build-program source version guile-version
                                             #:channel-metadata channel-metadata
                                             #:pull-version pull-version
                                             #:built-in-builders
                                             built-in-builders))
                      (system (if system (return system) (current-system)))
                      (home -> (getenv "HOME"))

                      ;; Note: Use the deprecated names here because the
                      ;; caller might be Guix <= 0.16.0.
                      (port   ((store-lift nix-server-socket)))
                      (major  ((store-lift nix-server-major-version)))
                      (minor  ((store-lift nix-server-minor-version))))
    (mbegin %store-monad
      ;; Before 'with-build-handler' was implemented and used, we had to
      ;; explicitly call 'show-what-to-build*'.
      (munless (module-defined? (resolve-module '(guix store))
                                'with-build-handler)
        (show-what-to-build* (list build)))
      (built-derivations (list build))

      ;; Use the port beneath the current store as the stdin of BUILD.  This
      ;; way, we know 'open-pipe*' will not close it on 'exec'.  If PORT is
      ;; not a file port (e.g., it's an SSH channel), then the subprocess's
      ;; stdin will actually be /dev/null.
      (let* ((sock   (socket AF_UNIX SOCK_STREAM 0))
             (node   (let ((file (string-append (or (getenv "TMPDIR") "/tmp")
                                                "/guix-build-output-"
                                                (number->string (getpid)))))
                       (bind sock AF_UNIX file)
                       (listen sock 1)
                       file))
             (pipe   (with-input-from-port port
                       (lambda ()
                         ;; Make sure BUILD is not influenced by
                         ;; $GUILE_LOAD_PATH & co.
                         (with-clean-environment
                          (setenv "GUILE_WARN_DEPRECATED" "no") ;be quiet and drive
                          (setenv "COLUMNS" "120") ;show wider backtraces
                          (when home
                            ;; Inherit HOME so that 'xdg-directory' works.
                            (setenv "HOME" home))
                          (open-pipe* OPEN_READ
                                      (derivation->output-path build)
                                      source system version
                                      (if (file-port? port)
                                          (number->string
                                           (logior major minor))
                                          "none")
                                      node))))))
        (format (current-error-port) "Computing Guix derivation for '~a'...  "
                system)

        ;; Wait for a connection on SOCK and proxy build output so it can be
        ;; processed according to the settings currently in effect (build
        ;; traces, verbosity level, and so on).
        (match (accept sock)
          ((port . _)
           (close-port sock)
           (delete-file node)
           (proxy port (current-build-output-port))))

        ;; Now that the build output connection was closed, read the result, a
        ;; derivation file name, from PIPE.
        (let ((str    (get-string-all pipe))
              (status (close-pipe pipe)))
          (match str
            ((? eof-object?)
             (error "build program failed" (list build status)))
            ((? derivation-path? drv)
             (mbegin %store-monad
               (return (newline (current-error-port)))
               ((store-lift add-temp-root) drv)
               (return (read-derivation-from-file drv))))
            ("#f"
             ;; Unsupported PULL-VERSION.
             (return #f))
            ((? string? str)
             (raise (condition
                     (&message
                      (message (format #f "You found a bug: the program '~a'
failed to compute the derivation for Guix (version: ~s; system: ~s;
host version: ~s; pull-version: ~s).
Please report the COMPLETE output above by email to <~a>.~%"
                                       (derivation->output-path build)
                                       version system %guix-version pull-version
                                       %guix-bug-report-address))))))))))))

;; This file is loaded by 'guix pull'; return it the build procedure.
build

;; Local Variables:
;; eval: (put 'with-load-path 'scheme-indent-function 1)
;; End:

;;; build-self.scm ends here
alendarsupport/html/index.html") (synopsis "Calendar Support library for KDE PIM") (description "The Calendar Support library provides helper utilities for calendaring applications.") (license ;; GPL for programs, LGPL for libraries (list license:gpl2+ license:lgpl2.0+)))) (define-public kcalutils (package (name "kcalutils") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kcalutils-" version ".tar.xz")) (sha256 (base32 "1hiygvhw9nmqsz7pca6za9as06m8l0wsv78ski6gcjwzpi7qh0vq")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules libxml2)) ;; xmllint required for tests (inputs (list breeze-icons ; default icon set, required for tests kcalendarcore kcodecs kconfig kconfigwidgets kcoreaddons ki18n kiconthemes kidentitymanagement kpimtextedit ktextwidgets ktexttemplate kwidgetsaddons)) (arguments (list #:qtbase qtbase #:tests? #f)) ;; TODO: seem to pull in some wrong theme (home-page "https://api.kde.org/kdepim/kcalutils/html/index.html") (synopsis "Library with utility functions for the handling of calendar data") (description "This library provides a utility and user interface functions for accessing calendar data using the kcalcore API.") (license license:lgpl2.0+))) (define-public kdepim-runtime (package (name "kdepim-runtime") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kdepim-runtime-" version ".tar.xz")) (sha256 (base32 "1jymvmiqbyl8qcff835sp6kw8w4lg4clm7p5cscfmcx6b9bg4w7l")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules dbus kdoctools libxslt shared-mime-info)) (inputs (list akonadi akonadi-calendar akonadi-contacts akonadi-mime akonadi-notes boost cyrus-sasl grantleetheme kcalendarcore kcalutils kcmutils kcodecs kconfig kconfigwidgets kcontacts kdav kholidays kidentitymanagement kimap kio kitemmodels kmailtransport kldap kmbox kmime kxmlgui knotifications knotifyconfig kpimcommon kpimtextedit ktextwidgets kwallet kwindowsystem libkdepim libkgapi ;; TODO: libkolab qca-qt6 qtdeclarative qtkeychain-qt6 qtnetworkauth qtspeech qtwebchannel qtwebengine)) (arguments ;; TODO: 5/45 tests fail for quite different reasons, even with ;; "offscreen" and dbus (list #:qtbase qtbase #:phases #~(modify-phases %standard-phases (add-after 'set-paths 'extend-CPLUS_INCLUDE_PATH (lambda* (#:key inputs #:allow-other-keys) ;; FIXME: <Akonadi/KMime/SpecialMailCollections> is not ;; found during one of the compilation steps without ;; this hack. (setenv "CPLUS_INCLUDE_PATH" (string-append (assoc-ref inputs "akonadi-mime") "/include/KF6:" (or (getenv "CPLUS_INCLUDE_PATH") ""))))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? ;; FIXME: Atleast some appear to require network. (invoke "dbus-launch" "ctest" "-E" "\ (akonadi-sqlite-synctest|akonadi-sqlite-pop3test|storecompacttest\ |akonadi-sqlite-ewstest|ewsmoveitemrequest_ut|ewsdeleteitemrequest_ut\ |ewsgetitemrequest_ut|ewsunsubscriberequest_ut|ewssettings_ut\ |templatemethodstest|akonadi-sqlite-serverbusytest|ewsattachment_ut|\\ testmovecollectiontask)"))))))) (home-page "https://invent.kde.org/pim/kdepim-runtime") (synopsis "Runtime components for Akonadi KDE") (description "This package contains Akonadi agents written using KDE Development Platform libraries. Any package that uses Akonadi should probably pull this in as a dependency. The kres-bridges is also parts of this package.") (license ;; Files vary a lot regarding the license. GPL2+ and LGPL2.1+ ;; have been used in those I checked. But the archive also includes ;; license texts for GPL3 and AGPL3. (list license:gpl2+ license:lgpl2.0+)))) (define-public keventviews (package (name "keventviews") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/eventviews-" version ".tar.xz")) (sha256 (base32 "0kqkd8dqh8plmxngajr8266nad2sm7qf711h2jpiav753p0xas5z")))) (properties `((upstream-name . "eventviews"))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules qttools)) (inputs (list akonadi-contacts boost kcalendarsupport kcalutils kcodecs kcompletion kconfigwidgets kcontacts kdbusaddons kdiagram kguiaddons kholidays ki18n kiconthemes kidentitymanagement kio kitemmodels kmime kpimtextedit kservice ktextwidgets kxmlgui libkdepim)) (propagated-inputs (list akonadi akonadi-calendar kcalendarcore kcalendarsupport)) (arguments (list #:qtbase qtbase)) (home-page "https://invent.kde.org/pim/eventviews") (synopsis "KDE PIM library for creating events") (description "This library provides an event creator for KDE PIM.") (license ;; GPL for programs, LGPL for libraries (list license:gpl2+ license:lgpl2.0+)))) (define-public kgpg (package (name "kgpg") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kgpg-" version ".tar.xz")) (sha256 (base32 "10zhxkhjsbn2pfhq40ym8qp39adfqhdvcg1rm9hvf8k1c91lzpxk")))) (build-system qt-build-system) (arguments (list #:qtbase qtbase #:phases #~(modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (setenv "HOME" (getcwd)) (invoke "ctest"))))) ;; XXX: Tests could fail randomly with: ;; gpg: can't connect to the agent: IPC connect call failed ;; gpg process did not finish. Cannot generate a new key pair. #:tests? #f)) (native-inputs (list extra-cmake-modules gnupg ;; TODO: Remove after gpgme uses fixed path kdoctools pkg-config)) (inputs (list akonadi akonadi-contacts boost breeze-icons ;; default icon set gpgme-1.23 grantleetheme karchive kcodecs kcontacts kcoreaddons kcrash kdbusaddons ki18n kiconthemes kio kitemmodels kjobwidgets knotifications kservice kstatusnotifieritem ktextwidgets kwidgetsaddons kwindowsystem kxmlgui)) (home-page "https://apps.kde.org/kgpg/") (synopsis "Graphical front end for GNU Privacy Guard") (description "Kgpg manages cryptographic keys for the GNU Privacy Guard, and can encrypt, decrypt, sign, and verify files. It features a simple editor for applying cryptography to short pieces of text, and can also quickly apply cryptography to the contents of the clipboard.") (license license:gpl2+))) (define-public khealthcertificate (package (name "khealthcertificate") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/khealthcertificate-" version ".tar.xz")) (sha256 (base32 "0600rz72dd3x7wwj82cyixnch3v0m4gva5kgf3y6rzjzlqjdpx57")))) (build-system qt-build-system) (arguments (list #:qtbase qtbase #:phases #~(modify-phases %standard-phases (replace 'check (lambda* (#:key inputs tests? #:allow-other-keys) (when tests? (setenv "TZDIR" (search-input-directory inputs "share/zoneinfo")) (invoke "ctest" "-E" "(icaovdsparsertest|eudgcparsertest)"))))))) (native-inputs (list extra-cmake-modules pkg-config tzdata-for-tests)) (inputs (list karchive kcodecs ki18n openssl qtdeclarative zlib)) (home-page "https://api.kde.org/khealthcertificate/html/index.html") (synopsis "Digital vaccination and recovery certificate library") (description "This package provides a library for arsing of digital vaccination, test and recovery certificates.") (license license:lgpl2.0))) (define-public kidentitymanagement (package (name "kidentitymanagement") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kidentitymanagement-" version ".tar.xz")) (sha256 (base32 "026i17j6spl0937klzf9ch26cmj7rrp617yrdq7917cwp9i7ah04")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list kcodecs kcompletion kconfig kcoreaddons kiconthemes kio kpimtextedit ktextwidgets ktextaddons kxmlgui kirigami-addons)) (arguments (list #:qtbase qtbase #:phases #~(modify-phases %standard-phases (add-before 'check 'set-home (lambda _ (setenv "HOME" "/tmp/dummy-home")))))) ;; FIXME: what is this? (home-page "https://kontact.kde.org/") (synopsis "Library for shared identities between mail applications") (description "This library provides an API for managing user identities.") (license ;; GPL for programs, LGPL for libraries, FDL for documentation (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+)))) (define-public kimap (package (name "kimap") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kimap-" version ".tar.xz")) (sha256 (base32 "1q4nxd31sjml31qicgpinf81rd8id71wm3kgx0v9byv7d0kysyqn")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list cyrus-sasl kcoreaddons kcodecs ki18n kio kmime)) (arguments (list #:qtbase qtbase)) (home-page "https://api.kde.org/kdepim/kimap/html/index.html") (synopsis "Library for handling IMAP") (description "This library provides a job-based API for interacting with an IMAP4rev1 server. It manages connections, encryption and parameter quoting and encoding, but otherwise provides quite a low-level interface to the protocol. This library does not implement an IMAP client; it merely makes it easier to do so.") (license ;; GPL for programs, LGPL for libraries (list license:gpl2+ license:lgpl2.0+)))) (define-public kitinerary (package (name "kitinerary") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kitinerary-" version ".tar.xz")) (sha256 (base32 "1c7dd85n1amyi9hdzfjlchcj156kfy64rw915bymcbvdy6y3m6ji")))) (build-system qt-build-system) (arguments (list #:qtbase qtbase #:phases #~(modify-phases %standard-phases (replace 'check (lambda* (#:key inputs tests? #:allow-other-keys) (when tests? (setenv "TZDIR" (search-input-directory inputs "share/zoneinfo")) (invoke "dbus-launch" "ctest" "-E" "(jsonlddocumenttest|mergeutiltest|locationutiltest|knowledgedbtest|airportdbtest|extractorscriptenginetest|pkpassextractortest|postprocessortest|calendarhandlertest|extractortest)"))))))) (native-inputs (list dbus extra-cmake-modules tzdata-for-tests)) (inputs (list kpkpass kcalendarcore karchive ki18n kcoreaddons kcontacts kmime knotifications shared-mime-info openssl poppler qtdeclarative libxml2 zlib zxing-cpp)) (home-page "https://apps.kde.org/itinerary/") (synopsis "Data Model and Extraction System for Travel Reservation information") (description "This package provides a library containing itinerary data model and itinerary extraction code.") (license license:lgpl2.0))) (define-public kldap (package (name "kldap") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kldap-" version ".tar.xz")) (sha256 (base32 "1nhr18h7f4qm196jjg5aqyky7v7w8n7iy07kzdk638381sarcmyz")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules kdoctools)) (inputs (list ki18n kio kwidgetsaddons qtkeychain-qt6)) (propagated-inputs (list cyrus-sasl openldap)) (arguments (list #:qtbase qtbase)) (home-page "https://api.kde.org/kdepim/kldap/html/index.html") (synopsis "Library for accessing LDAP") (description "This is a library for accessing LDAP with a convenient Qt style C++ API. LDAP (Lightweight Directory Access Protocol) is an application protocol for querying and modifying directory services running over TCP/IP.") (license license:lgpl2.0+))) (define-public kleopatra (package (name "kleopatra") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kleopatra-" version ".tar.xz")) (sha256 (base32 "1jm0x73g2mfk6fc2m3smray8c9wddkk785aizxvq0yi4v52wydxb")))) (build-system qt-build-system) (native-inputs (list dbus extra-cmake-modules gnupg ;; TODO: Remove after gpgme uses fixed path kdoctools)) (inputs (list boost gpgme-1.23 kcmutils kcodecs kconfig kconfigwidgets kcoreaddons kcrash kdbusaddons ki18n kio kiconthemes kitemmodels kmime knotifications ktextwidgets kstatusnotifieritem kwidgetsaddons kwindowsystem kxmlgui libassuan libkleo mimetreeparser breeze-icons ;; default icon set qgpgme-qt6-1.23)) (arguments (list #:qtbase qtbase #:phases #~(modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "dbus-launch" "ctest"))))))) (home-page "https://apps.kde.org/kleopatra/") (synopsis "Certificate Manager and Unified Crypto GUI") (description "Kleopatra is a certificate manager and a universal crypto GUI. It supports managing X.509 and OpenPGP certificates in the GpgSM keybox and retrieving certificates from LDAP servers.") (license ;; GPL for programs, FDL for documentation (list license:gpl2+ license:fdl1.2+)))) (define-public kmail (package (name "kmail") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kmail-" version ".tar.xz")) (sha256 (base32 "0g30a36pd86brxq3ln709jnq9xdyqm8jiwwbv8kh70mcdbpjcpk2")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules dbus kdoctools)) (inputs (list akonadi akonadi-contacts akonadi-mime akonadi-search boost gpgme-1.23 grantleetheme kaddressbook kbookmarks kcalendarcore kcalutils kcmutils kcodecs kconfig kconfigwidgets kcontacts kcrash kdbusaddons kguiaddons ki18n kiconthemes kidentitymanagement kimap kio kitemmodels kitemviews kjobwidgets kldap kmail-account-wizard kmailcommon kmailtransport kmessagelib kmime knotifications knotifyconfig kontactinterface kparts kpimcommon kpimtextedit kservice kstatusnotifieritem ksyntaxhighlighting ktextaddons ktextwidgets kuserfeedback ktnef kwallet kwidgetsaddons kwindowsystem kxmlgui libgravatar libkdepim libkleo libksieve breeze-icons ; default icon set, required for tests qgpgme-qt6-1.23 qtdeclarative qtkeychain-qt6 qtwebchannel qtwebengine sonnet)) (arguments (list #:qtbase qtbase #:phases #~(modify-phases %standard-phases (add-after 'install 'wrap-program (lambda* (#:key inputs #:allow-other-keys) (define (find-program-directory name) (dirname (search-input-file inputs (string-append "/bin/" name)))) (wrap-program (string-append #$output "/bin/kmail") `("XDG_DATA_DIRS" ":" prefix (,(getenv "XDG_DATA_DIRS"))) `("PATH" ":" prefix ,(map find-program-directory (list "kaddressbook" "akonadictl" "accountwizard")))))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "dbus-launch" "ctest" "-E" ;; FIXME: Many failing tests. "(akonadi-sqlite-kmcomposerwintest|\ akonadi-sqlite-archivemailwidgettest|\ akonadi-sqlite-tagselectdialogtest|\ akonadi-sqlite-kmcommandstest|\ sendlateragent-sendlaterutiltest|\ sendlateragent-sendlaterconfigtest|\ followupreminder-followupreminderconfigtest|\ akonadi-sqlite-unifiedmailboxmanagertest)"))))))) (home-page "https://kontact.kde.org/components/kmail/") (synopsis "Full featured graphical email client") (description "KMail supports multiple accounts, mail filtering and email encryption. The program let you configure your workflow and it has good integration into KDE (Plasma Desktop) but is also usable with other Desktop Environments. KMail is the email component of Kontact, the integrated personal information manager from KDE.") (license ;; GPL for programs, LGPL for libraries, FDL for documentation (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+)))) (define-public kmail-account-wizard (package (name "kmail-account-wizard") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kmail-account-wizard-" version ".tar.xz")) (sha256 (base32 "0izjdajipca59zbsdir136qfyh61aynpb2h1bady6qs927l5ds1f")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules shared-mime-info)) (inputs (list akonadi akonadi-mime kcrash kcmutils kdbusaddons ki18n kiconthemes kidentitymanagement kimap kitemmodels kldap kmailtransport kmime knewstuff knotifications knotifyconfig kpimcommon kpimtextedit ktextaddons ktexteditor kwallet libkdepim libkleo qtkeychain-qt6)) (arguments (list #:qtbase qtbase ;; TODO: pass test. #:tests? #f)) (home-page "https://invent.kde.org/pim/kmail-account-wizard") (synopsis "Assistant for the configuration of accounts in KMail") (description "This package provides an assistant for the configuration of accounts in KMail.") (license ;;GPL for programs, LGPL for libraries, FDL for documentation (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+)))) (define-public kmailcommon (package (name "kmailcommon") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/mailcommon-" version ".tar.xz")) (sha256 (base32 "0s23g08q5nx11vdpwxkqgzcs9xb6nycwsndfl6vpcnlbx10zsbfr")))) (properties `((upstream-name . "mailcommon"))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules dbus gnupg qttools)) (inputs (list akonadi-contacts boost gpgme grantleetheme karchive kcodecs kconfig kconfigwidgets kcontacts kdbusaddons kguiaddons ki18n kiconthemes kidentitymanagement kimap kio kitemmodels kitemviews kldap kmailimporter kmailtransport kmime kpimtextedit ksyntaxhighlighting ktextaddons ktextwidgets kwallet kwidgetsaddons kwindowsystem kxmlgui libkleo libxslt phonon qgpgme qtwebchannel qtwebengine)) (propagated-inputs (list akonadi akonadi-mime kcompletion kmessagelib kpimcommon libkdepim)) (arguments (list #:qtbase qtbase #:tests? #f)) ;; TODO: 12/62 tests fail (home-page "https://invent.kde.org/pim/mailcommon") (synopsis "KDE email utility library") (description "The mail common library provides utility functions for dealing with email.") (license ;; GPL for programs, LGPL for libraries (list license:gpl2+ license:lgpl2.0+)))) (define-public kmailimporter (package (name "kmailimporter") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/mailimporter-" version ".tar.xz")) (sha256 (base32 "0hjwz70ys2bi6l8c2anzc7mhcapcqsximrxh813sp36hqwsix52g")))) (properties `((upstream-name . "mailimporter"))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list akonadi akonadi-contacts akonadi-mime grantleetheme boost kcompletion kconfig kconfigwidgets kcontacts kcoreaddons kdbusaddons ki18n kimap kio kitemmodels kmime kpimcommon kpimtextedit ktextaddons ktextwidgets kxmlgui libkdepim)) (propagated-inputs (list karchive)) (arguments (list #:qtbase qtbase)) (home-page "https://invent.kde.org/pim/mailimporter") (synopsis "KDE mail importer library") (description "This package provides libraries for importing mails other e-mail client programs into KMail and KDE PIM.") (license ;; GPL for programs, LGPL for libraries (list license:gpl2+ license:lgpl2.0+)))) (define-public kmailtransport (package (name "kmailtransport") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kmailtransport-" version ".tar.xz")) (sha256 (base32 "0ck6mr1zapk0ac96ffnps7pw5pzvb3d5v8lyjvv8acy3435j684z")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules kdoctools)) (inputs (list akonadi akonadi-mime boost cyrus-sasl kcalendarcore kcmutils kcontacts kdbusaddons kconfigwidgets ki18n kitemmodels kio kmime ksmtp ktextwidgets kwallet libkgapi qtkeychain-qt6)) (arguments (list #:qtbase qtbase #:tests? #f)) ;; 1/2 tests fail, require network. (home-page "https://api.kde.org/kdepim/kmailtransport/html/index.html") (synopsis "Mail transport service library") (description "This library provides an API and support code for managing mail transport.") (license license:lgpl2.0+))) (define-public kmbox (package (name "kmbox") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kmbox-" version ".tar.xz")) (sha256 (base32 "0g2pg80n37miinfv69mz6hpvdhhbprdvgbkvzafspaj9bram9xrr")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list kcodecs kmime)) (arguments (list #:qtbase qtbase)) (home-page "https://api.kde.org/kdepim/kmbox/html/index.html") (synopsis "Library for handling mbox mailboxes") (description "This is a library for handling mailboxes in mbox format, using a Qt/KMime C++ API.") (license license:lgpl2.0+ ))) (define-public kmessagelib (package (name "kmessagelib") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/messagelib-" version ".tar.xz")) (sha256 (base32 "1m7mah1zqfn9r3jw1lg303kg023lgl77r6if5g4ifv3lsih52pgl")))) (properties `((upstream-name . "messagelib"))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules gnupg libxml2)) (inputs (list akonadi-contacts akonadi-notes akonadi-search boost gpgme-1.23 grantleetheme karchive kcalendarcore kcodecs kcompletion kconfig kconfigwidgets kcontacts kdbusaddons kguiaddons ki18n kiconthemes kimap kio kitemmodels kitemviews kjobwidgets kldap kmailtransport kmbox knewstuff knotifications kservice ksyntaxhighlighting ktextwidgets ktexttemplate kwallet kwidgetsaddons kwindowsystem kxmlgui libgravatar qca-qt6 qgpgme-qt6-1.23 qtdeclarative qtwebchannel qtwebengine sonnet)) (propagated-inputs (list akonadi akonadi-mime kidentitymanagement kmime kpimcommon kpimtextedit ktextaddons libkdepim libkleo)) (arguments (list #:qtbase qtbase #:tests? #f ;TODO many test fail for quite different reasons #:phases #~(modify-phases %standard-phases (add-after 'unpack 'add-miss-PrintSupport (lambda _ (substitute* "webengineviewer/src/CMakeLists.txt" (("KF6::ConfigCore") "KF6::ConfigCore\n Qt::PrintSupport"))))))) (home-page "https://invent.kde.org/pim/messagelib") (synopsis "KDE PIM messaging libraries") (description "This package provides several libraries for messages, e.g. a message list, a mime tree parse, a template parser and the kwebengineviewer.") (license ;; GPL for programs, LGPL for libraries (list license:gpl2+ license:lgpl2.0+)))) (define-public kmime (package (name "kmime") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kmime-" version ".tar.xz")) (sha256 (base32 "19dnp955vii3vi1jaxgbsyabbb35iaqvhz9nnz392r3wz7f3hbyq")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules tzdata-for-tests)) (inputs (list kcodecs ki18n)) (arguments (list #:qtbase qtbase #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-test-case (lambda* (#:key inputs tests? #:allow-other-keys) (when tests? (setenv "TZDIR" (search-input-directory inputs "share/zoneinfo")))))))) (home-page "https://api.kde.org/stable/kdepimlibs-apidocs/") (synopsis "Library for handling MIME data") (description "This library provides an API for handling MIME data. MIME (Multipurpose Internet Mail Extensions) is an Internet Standard that extends the format of e-mail to support text in character sets other than US-ASCII, non-text attachments, multi-part message bodies, and header information in non-ASCII character sets.") (license license:lgpl2.0+))) (define-public knotes (package (name "knotes") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/knotes-" version ".tar.xz")) (sha256 (base32 "14nm2s86hqvvg0wyg8q5dd273dpppqw692h3mzya5mfg3j7acvaf")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules kdoctools libxslt)) (inputs (list akonadi akonadi-contacts akonadi-mime akonadi-notes akonadi-search boost breeze-icons ; default icon set, required for tests grantleetheme kcalendarcore kcalutils kcmutils kcompletion kconfig kconfigwidgets kcontacts kcoreaddons kcrash kdnssd kglobalaccel kiconthemes kimap kitemmodels kitemviews kmime knewstuff knotifications knotifyconfig kontactinterface kparts kpimcommon kpimtextedit kstatusnotifieritem ktextaddons ktextwidgets ktexttemplate kwidgetsaddons kwindowsystem kxmlgui kxmlgui libkdepim)) (arguments (list #:qtbase qtbase)) (home-page "https://apps.kde.org/knotes/") (synopsis "Note-taking utility") (description "KNotes lets you write the computer equivalent of sticky notes. The notes are saved automatically when you exit the program, and they display when you open the program. Features: @itemize @item Write notes in your choice of font and background color @item Use drag and drop to email your notes @item Can be dragged into Calendar to book a time-slot @item Notes can be printed @end itemize") (license (list license:gpl2+ license:lgpl2.0+)))) (define-public kontactinterface (package (name "kontactinterface") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kontactinterface-" version ".tar.xz")) (sha256 (base32 "05g9mw29pi5z536pmxhavdispq5whgkx56iqqsdz8dy9rgjlm1bc")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list kcoreaddons ki18n kiconthemes kparts kwindowsystem kxmlgui libxkbcommon)) (arguments (list #:qtbase qtbase)) (home-page "https://api.kde.org/kdepim/kontactinterface/html/index.html") (synopsis "Kontact interface library") (description "This library provides the glue necessary for application \"Parts\" to be embedded as a Kontact component (or plugin).") (license license:lgpl2.0+))) (define-public korganizer (package (name "korganizer") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/korganizer-" version ".tar.xz")) (sha256 (base32 "10walf46h1cnyfcpkppybgzlfcn93rygwppb4jfi2rg24rka3i84")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules dbus qttools kdoctools tzdata-for-tests)) (inputs (list akonadi akonadi-calendar akonadi-contacts akonadi-mime akonadi-notes akonadi-search boost grantleetheme kcalendarcore kcalendarsupport kcalutils kcmutils kcodecs kcompletion kconfig kconfigwidgets kcontacts kcoreaddons kcrash kdbusaddons keventviews kholidays kiconthemes kidentitymanagement kimap kincidenceeditor kitemmodels kitemviews kjobwidgets kldap kmailtransport kmime knewstuff knotifications kontactinterface kparts kpimcommon kpimtextedit kservice ktextaddons kwallet kwidgetsaddons kwindowsystem kxmlgui libkdepim breeze-icons ; default icon set, required for tests phonon)) (arguments (list #:qtbase qtbase #:phases #~(modify-phases %standard-phases (replace 'check (lambda* (#:key inputs tests? #:allow-other-keys) (when tests? (setenv "TZDIR" (search-input-directory inputs "share/zoneinfo")) (invoke "dbus-launch" "ctest" "-E" "akonadi-sqlite-koeventpopupmenutest"))))))) (home-page "https://apps.kde.org/korganizer/") (synopsis "Organizational assistant, providing calendars and other similar functionality") (description "KOrganizer is the calendar and scheduling component of Kontact. It provides management of events and tasks, alarm notification, web export, network transparent handling of data, group scheduling, import and export of calendar files and more. It is able to work together with a wide variety of calendaring services, including NextCloud, Kolab, Google Calendar and others. KOrganizer is fully customizable to your needs and is an integral part of the Kontact suite, which aims to be a complete solution for organizing your personal data. KOrganizer supports the two dominant standards for storing and exchanging calendar data, vCalendar and iCalendar.") (license ;; GPL for programs, LGPL for libraries, FDL for documentation (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+)))) (define-public kpeoplevcard (package (name "kpeoplevcard") (version "0.1") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/kpeoplevcard/" version "/kpeoplevcard-" version ".tar.xz")) (sha256 (base32 "1hv3fq5k0pps1wdvq9r1zjnr0nxf8qc3vwsnzh9jpvdy79ddzrcd")))) (build-system qt-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check-setup (lambda _ (setenv "HOME" "/tmp")))))) (native-inputs (list extra-cmake-modules)) (inputs (list kcontacts kpeople qtbase-5)) (home-page "https://invent.kde.org/pim/kpeoplevcard") (synopsis "Expose vCard contacts to KPeople") (description "This plugins adds support for vCard (also known as @acronym{VCF, Virtual Contact File}) files to the KPeople contact management library.") (license license:lgpl2.1+))) (define-public kpkpass (package (name "kpkpass") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kpkpass-" version ".tar.xz")) (sha256 (base32 "1cqpmag3n58nzcbyb1rkkvwx9lzff1l8nawbqz2g1gqk2diny0wx")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list karchive shared-mime-info)) (arguments (list #:qtbase qtbase)) (home-page "https://invent.kde.org/pim/kpkpass") (synopsis "Apple Wallet Pass reader") (description "This package provides library to deal with Apple Wallet pass files.") (license license:lgpl2.0+))) (define-public kpimcommon (package (name "kpimcommon") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/pimcommon-" version ".tar.xz")) (sha256 (base32 "0k7zakx1dd39997a9a3d6qmlzdc5alw5gny0xh7bncv0fpilvgyh")))) (properties `((upstream-name . "pimcommon"))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules qttools)) (inputs (list karchive akonadi akonadi-contacts akonadi-mime akonadi-search boost grantleetheme kaccounts-integration kcalendarcore kcmutils kcodecs kconfig kconfigwidgets kcontacts kcoreaddons ki18n kiconthemes kio kirigami ;; run-time dependency kitemmodels kitemviews kjobwidgets kldap kmime knewstuff kpimtextedit ktextwidgets ktexttemplate kwallet kwidgetsaddons kwindowsystem kxmlgui libxslt purpose qtwebengine)) (propagated-inputs (list kimap ktextaddons libkdepim)) (arguments (list #:qtbase qtbase)) (home-page "https://invent.kde.org/pim/pimcommon") (synopsis "Common libraries for KDE PIM") (description "This package provides common libraries for KDE PIM.") (license ;; GPL for programs, LGPL for libraries (list license:gpl2+ license:lgpl2.0+)))) (define-public libgravatar (package (name "libgravatar") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/libgravatar-" version ".tar.xz")) (sha256 (base32 "0xk6i1rndhh58p20hx6473hc29njg03qcy7ymdvflr5lgr7qavwy")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list kconfig ki18n kio kconfigwidgets kpimcommon kpimtextedit ktextaddons ktextwidgets kwidgetsaddons qtbase)) (arguments (list #:qtbase qtbase #:tests? #f)) ;; 2/7 tests fail (due to network issues?) (home-page "https://invent.kde.org/pim/libgravatar") (synopsis "Online avatar lookup library") (description "This library retrieves avatar images based on a hash from a person's email address, as well as local caching to avoid unnecessary network operations.") (license ;; GPL for programs, LGPL for libraries (list license:gpl2+ license:lgpl2.0+)))) (define-public kpimtextedit (package (name "kpimtextedit") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kpimtextedit-" version ".tar.xz")) (sha256 (base32 "1m91hnjiksji60ybvmvlcgayqrcplxfdj7qxknxwayiijvqiq22a")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules qttools)) (inputs (list kcodecs kconfigwidgets kcoreaddons ktextaddons ki18n kiconthemes kio ksyntaxhighlighting ktextwidgets kwidgetsaddons kxmlgui qtspeech sonnet)) (arguments (list #:qtbase qtbase #:tests? #f)) ;; TODO - test suite hangs (home-page "https://api.kde.org/kdepim/kpimtextedit/html/index.html") (synopsis "Library providing a textedit with PIM-specific features") (description "This package provides a textedit with PIM-specific features. It also provides so-called rich text builders which can convert the formatted text in the text edit to all kinds of markup, like HTML or BBCODE.") (license ;; GPL for programs, LGPL for libraries, FDL for documentation (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+)))) (define-public ksmtp (package (name "ksmtp") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/ksmtp-" version ".tar.xz")) (sha256 (base32 "1v7kami1f75gin7293kk07imkdnmvf9bfn49fc6lzbb52im4nh4b")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list cyrus-sasl kcodecs kconfig kcoreaddons ki18n kio)) (arguments (list #:qtbase qtbase #:tests? #f ;; TODO: does not find sasl mechs #:phases #~(modify-phases %standard-phases (add-after 'unpack 'Use-KDE_INSTALL_TARGETS_DEFAULT_ARGS-when-installing (lambda _ (substitute* "src/CMakeLists.txt" (("^(install\\(.* )\\$\\{KF5_INSTALL_TARGETS_DEFAULT_ARGS\\}\\)" _ prefix) (string-append prefix "${KDE_INSTALL_TARGETS_DEFAULT_ARGS})")))))))) (home-page "https://invent.kde.org/pim/ksmtp") (synopsis "Library for sending email through an SMTP server") (description "This library provides an API for handling SMTP services. SMTP (Simple Mail Transfer Protocol) is the most prevalent Internet standard protocols for e-mail transmission.") (license license:lgpl2.0+))) (define-public ktnef (package (name "ktnef") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/ktnef-" version ".tar.xz")) (sha256 (base32 "1v113fihnsn6iilk01rm8g68pm1gf1gdsvar2fiwhqsg48all588")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list kcalendarcore kcalutils kcodecs kconfig kcontacts kcoreaddons ki18n)) (arguments (list #:qtbase qtbase)) (home-page "https://api.kde.org/kdepim/ktnef/html/index.html") (synopsis "Library for handling mail attachments using TNEF format") (description "Ktnef is a library for handling data in the TNEF format (Transport Neutral Encapsulation Format, a proprietary format of e-mail attachment used by Microsoft Outlook and Microsoft Exchange Server). The API permits access to the actual attachments, the message properties (TNEF/MAPI), and allows one to view/extract message formatted text in Rich Text Format.") (license license:lgpl2.0+))) (define-public libkdepim (package (name "libkdepim") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/libkdepim-" version ".tar.xz")) (sha256 (base32 "1k22qjxfm8msj8ipyz2p5qq0hx9q6p3qw42cp3bnbhiaamanmlq3")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules qttools)) (inputs (list akonadi akonadi-contacts akonadi-mime akonadi-search boost kcmutils kcodecs kcalendarcore kcompletion kconfig kconfigwidgets kcontacts kcoreaddons kdbusaddons ki18n kiconthemes kio kitemmodels kitemviews kjobwidgets kldap kmime kwallet kwidgetsaddons)) (arguments (list #:qtbase qtbase)) (home-page "https://invent.kde.org/pim/libkdepim") (synopsis "Libraries for common KDE PIM apps") (description "This package provided libraries for common KDE PIM apps.") (license ;; GPL for programs, LGPL for libraries (list license:gpl2+ license:lgpl2.0+)))) (define-public libkgapi (package (name "libkgapi") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/libkgapi-" version ".tar.xz")) (sha256 (base32 "0j0rbzwcjq4wjrrk0vhkifa8ahmmrpfy039fpf3gy237k5ncj5y3")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules qttools)) (inputs (list cyrus-sasl ki18n kcontacts kcalendarcore kio kwallet kwindowsystem qtdeclarative qtwebchannel qtwebengine)) (arguments (list #:qtbase qtbase #:tests? #f)) ;; TODO 6/48 tests fail (home-page "https://invent.kde.org/pim/libkgapi") (synopsis "Library for accessing various Google services via their public API") (description "@code{LibKGAPI} is a C++ library that implements APIs for various Google services.") (license license:lgpl2.0+))) (define-public libkleo (package (name "libkleo") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/libkleo-" version ".tar.xz")) (sha256 (base32 "102yszx6smyf2vd068p6j0921fql5jlmsra3n62xam81smqlpgj0")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules kdoctools qttools)) (inputs (list boost gpgme-1.23 kcodecs kcompletion kconfig kconfigwidgets kcoreaddons kcrash ki18n kitemmodels kwidgetsaddons kwindowsystem kpimtextedit qgpgme-qt6-1.23)) (propagated-inputs (list gpgme-1.23 qgpgme-qt6-1.23)) (arguments (list #:qtbase qtbase #:phases #~(modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? ;; FIXME: These tests fail. (invoke "ctest" "-E" "(expirycheckertest|keyresolvercoretest|\ newkeyapprovaldialogtest)"))))))) (home-page "https://invent.kde.org/pim/libkleo") (synopsis "KDE PIM cryptographic library") (description "@code{libkleo} is a library for Kleopatra and other parts of KDE using certificate-based crypto.") (license ;; GPL for programs, LGPL for libraries (list license:gpl2+ license:lgpl2.0+)))) (define-public libksieve (package (name "libksieve") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/libksieve-" version ".tar.xz")) (sha256 (base32 "1zsc84ylrylby28ypdg47kmf911dmi5hi6745wvjsrxcwnpqag37")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules kdoctools)) (inputs (list akonadi cyrus-sasl grantleetheme kconfigwidgets karchive ki18n kiconthemes kidentitymanagement kimap kio kmailtransport kmime knewstuff kpimcommon kpimtextedit ksyntaxhighlighting ktextaddons ktextwidgets kwallet kwindowsystem libkdepim qtdeclarative qtwebchannel qtwebengine)) (arguments (list #:qtbase qtbase #:phases #~(modify-phases %standard-phases (add-after 'unpack 'substitute (lambda _ ;; Disable a failing test ;; sieveeditorhelphtmlwidgettest fails with `sigtrap` (substitute* "src/ksieveui/editor/webengine/autotests/CMakeLists.txt" (("^\\s*(add_test|ecm_mark_as_test|set_tests_properties)\\W" line) (string-append "# " line)))))))) (home-page "https://invent.kde.org/pim/libksieve") (synopsis "KDE Sieve library") (description "Sieve is a language that can be used filter emails. KSieve is a Sieve parser and interpreter library for KDE.") (license ;; GPL for programs, LGPL for libraries (list license:gpl2+ license:lgpl2.0+)))) (define-public merkuro (package (name "merkuro") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/" name "-" version ".tar.xz")) (sha256 (base32 "0n6na806g4xlx66ay0vk3iw9xs1h48ya7l0zpa3nqikr1by79lfh")))) (build-system qt-build-system) (arguments (list #:qtbase qtbase #:tests? #f #:phases #~(modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "dbus-launch" "ctest"))))))) (native-inputs (list dbus extra-cmake-modules)) (inputs (list akonadi akonadi-contacts akonadi-mime breeze-icons gpgme grantleetheme kio kirigami kirigami-addons kdbusaddons ki18n kimap kcalendarcore kcalendarsupport kconfigwidgets kwindowsystem kcoreaddons kcontacts kitemmodels kmailcommon kmailtransport kmessagelib kmime kidentitymanagement kpimcommon kpimtextedit ktextaddons ktextwidgets akonadi-calendar akonadi-mime keventviews kcalutils kxmlgui kiconthemes libkdepim libkleo mimetreeparser qtdeclarative qtsvg qqc2-desktop-style qtwebengine)) (home-page "https://apps.kde.org/kalendar/") (synopsis "Calendar application") (description "Merkuro is a calendar application using Akonadi to sync with external services. NOTE: plsase add akonadi and kdepim-runtime to system package.") (license license:gpl3+))) (define-public mimetreeparser (package (name "mimetreeparser") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/mimetreeparser-" version ".tar.xz")) (sha256 (base32 "132slwaqlaxnbvkpqb9w4ak4mpkrvw6ln81nbka91c3ngcamfac9")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list kcalendarcore kcodecs libkleo kwidgetsaddons qtdeclarative)) (propagated-inputs (list ki18n kmime kmbox)) (arguments (list #:tests? #f ;; FIXME: 7/9 tests fail. #:qtbase qtbase)) (home-page "https://kontact.kde.org") (synopsis "Parser for MIME trees") (description "This package provides a parser for a MIME tree and is based on KMime. The goal is given a MIME tree to extract a list of parts and a list of attachments, check the validity of the signatures and decrypt any encrypted part.") (license license:lgpl2.0+)))