gnu: Deprecate barrier in favor of deskflow.

* gnu/packages/barrier.scm: Remove file.
* gnu/local.mk (GNU_SYSTEM_MODULES), po/packages/POTFILES.in: Unregister
file.
* gnu/packages/hardware.scm (barrier): New variable.

Fixes: guix/guix#1521
Change-Id: I7071a21aa9ef0ae4eafe752fc03ce1e9f768c8ef
This commit is contained in:
Andreas Enge 2025-09-24 10:31:00 +02:00
parent 9b46060950
commit 734da975a2
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3
4 changed files with 4 additions and 86 deletions

View file

@ -166,7 +166,6 @@ GNU_SYSTEM_MODULES = \
%D%/packages/axoloti.scm \ %D%/packages/axoloti.scm \
%D%/packages/backup.scm \ %D%/packages/backup.scm \
%D%/packages/base.scm \ %D%/packages/base.scm \
%D%/packages/barrier.scm \
%D%/packages/bash.scm \ %D%/packages/bash.scm \
%D%/packages/batik.scm \ %D%/packages/batik.scm \
%D%/packages/bdw-gc.scm \ %D%/packages/bdw-gc.scm \

View file

@ -1,84 +0,0 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2022 Mathieu Othacehe <othacehe@gnu.org>
;;; Copyright © 2023 Simon Tournier <zimon.toutoune@gmail.com>
;;; Copyright © 2025 Andreas Enge <andreas@enge.fr>
;;;
;;; 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 (gnu packages barrier)
#:use-module (guix build-system cmake)
#:use-module (guix utils)
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (gnu packages avahi)
#:use-module (gnu packages check)
#:use-module (gnu packages cpp)
#:use-module (gnu packages curl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages qt)
#:use-module (gnu packages tls)
#:use-module (gnu packages xorg))
(define-public barrier
(package
(name "barrier")
(version "2.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/debauchee/barrier")
(commit (string-append "v" version))
(recursive? #t)))
(file-name (git-file-name name version))
(sha256
(base32 "19bwa9qidq2mxv1fkyxxc1xdmv3jx6bj35bkaaw70jzkblnfmlfs"))))
(build-system cmake-build-system)
(arguments
(list
#:configure-flags
#~(list "-DBARRIER_USE_EXTERNAL_GTEST=ON")
#:tests? #f ;; tests require a running x server
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-includes
(lambda _
(substitute* "src/lib/base/Event.h"
(("#include \"common/stdmap\\.h\"")
"#include \"common/stdmap.h\"\n#include <cstddef>"))
(substitute*
'("src/lib/base/String.h"
"src/lib/net/FingerprintData.h"
"src/lib/net/FingerprintDatabase.h")
(("#include <vector>" all)
(string-append all "\n#include <cstdint>"))))))))
(native-inputs
(list googletest pkg-config))
(inputs
(list avahi curl gulrak-filesystem libx11 libxtst openssl qtbase-5))
(synopsis "Keyboard Video Mouse switch software")
(description "@code{Barrier} is software that mimics the functionality of
a KVM switch, which historically would allow you to use a single keyboard and
mouse to control multiple computers by physically turning a dial on the box to
switch the machine you're controlling at any given moment. Barrier does this
in software, allowing you to tell it which machine to control by moving your
mouse to the edge of the screen, or by using a keypress to switch focus to a
different system.")
(home-page "https://github.com/debauchee/barrier")
(license license:gpl2)))

View file

@ -303,6 +303,10 @@ TLS encryption is enabled by default. It supports Wayland clipboard
sharing.") sharing.")
(license license:gpl2))) (license license:gpl2)))
;; Added on 2025-09-24.
(define-public barrier
(deprecated-package "barrier" deskflow))
(define-public hw-probe (define-public hw-probe
(package (package
(name "hw-probe") (name "hw-probe")

View file

@ -35,7 +35,6 @@ gnu/packages/avr-xyz.scm
gnu/packages/avr.scm gnu/packages/avr.scm
gnu/packages/axoloti.scm gnu/packages/axoloti.scm
gnu/packages/backup.scm gnu/packages/backup.scm
gnu/packages/barrier.scm
gnu/packages/base.scm gnu/packages/base.scm
gnu/packages/bash.scm gnu/packages/bash.scm
gnu/packages/batik.scm gnu/packages/batik.scm