;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018 Mathieu Othacehe ;;; Copyright © 2019 Ludovic Courtès ;;; ;;; 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 . (define-module (gnu installer newt ethernet) #:use-module (gnu installer connman) #:use-module (gnu installer steps) #:use-module (gnu installer newt utils) #:use-module (gnu installer newt page) #:use-module (guix i18n) #:use-module (ice-9 format) #:use-module (ice-9 match) #:use-module (srfi srfi-34) #:use-module (srfi srfi-35) #:use-module (newt) #:export (run-ethernet-page)) (define (ethernet-services) "Return all the connman services of ethernet type." (let ((services (connman-services))) (filter (lambda (service) (and (string=? (service-type service) "ethernet") (not (string-null? (service-name service))))) services))) (define (ethernet-service->text service) "Return a string describing the given ethernet SERVICE." (let* ((name (service-name service)) (path (service-path service)) (full-name (string-append name "-" path)) (state (service-state service)) (connected? (or (string=? state "online") (string=? state "ready")))) (format #f "~c ~a~%" (if connected? #\* #\ ) full-name))) (define (connect-ethernet-service service) "Connect to the given ethernet SERVICE. Display a connecting page while the connection is pending." (let* ((service-name (service-name service)) (form (draw-connecting-page service-name))) (connman-connect service) (destroy-form-and-pop form) service)) (define (run-ethernet-page) (match (ethernet-services) (() (run-error-page (G_ "No ethernet service available, please try again.") (G_ "No service")) (abort-to-prompt 'installer-step 'abort)) ((service) ;; Only one service is available so return it directly. service) ((services ...) (run-listbox-selection-page #:info-text (G_ "Please select an ethernet network.") #:title (G_ "Ethernet connection") #:listbox-items services #:listbox-item->text ethernet-service->text #:listbox-height (min (+ (length services) 2) 5) #:button-text (G_ "Exit") #:button-callback-procedure (lambda _ (abort-to-prompt 'installer-step 'abort)) #:listbox-callback-procedure connect-ethernet-service)))) Fix build issue related to issue 43579 in phase 'prepare-src. [configure-flags]: Add optimising flags --disable-cve-tests, --enable-readonly-installset, --disable-dependency-tracking. [native-inputs]: Add gcc-toolchain-12. [inputs]: Add argon2, zxcvbn-c. Change-Id: I72e0ebb4d075c47ea168b181f969a97f9249150a Signed-off-by: Ludovic Courtès <ludo@gnu.org> Nicolas Graves 2024-08-31gnu: LibreOffice: Build with libxcrypt....Glibc 2.38 no longer includes libcrypt by default, so we provide this functionality via libxcrypt. https://sourceware.org/glibc/wiki/Release/2.38#Building_libcrypt_is_disabled_by_default * gnu/packages/libreoffice.scm (libreoffice)[inputs]: Add libxcrypt. Change-Id: I3c9e02abb420a710d3a71bf137187dd989eb0398 Leo Famulari 2024-06-13gnu: libreoffice: Update to 7.6.7.2....* gnu/packages/libreoffice.scm (libreoffice): Update to 7.6.7.2. * gnu/packages/hunspell.scm (hunspell-dict-he-il, hunspell-dict-it-it): Update to 7.6.7.2. Change-Id: I289a0b2b9648930b46102c055c642c333a4229fd Co-authored-by: Ludovic Courtès <ludo@gnu.org> Nicolas Graves 2024-03-26gnu: orcus: Update to 0.19.2....* gnu/packages/libreoffice.scm (orcus): Update to 0.19.2. Change-Id: I965428ba271bcdf0bcc9b31984cf628a09495b6b Efraim Flashner 2024-03-26gnu: libcmis: Update to 0.6.2....* gnu/packages/libreoffice.scm (libcmis): Update to 0.6.2. [arguments]: Remove a configure-flag setting the location of the boost libraries. Change-Id: I9145e1e8bf31ea0354efef8255160c3530ebe639 Efraim Flashner