1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00
Files
guix/gnu/packages/uucp.scm
Sharlatan Hellseher f58a46fd5f gnu: nncp: Update to 8.13.0.
Starting from 8.12.0 all `nncp-*' commands are combined into single
`nncp'.

* gnu/packages/uucp.scm (nncp): Update to 8.13.0.
[phases] {fix-paths}: Adjust to use "unpack-path", switch to
search-input-file.
{build} Use default phase, which provides just one binary now.

Change-Id: I7a6f4d567f8d29c7659c622c5861106e0cc68fb5
2026-02-25 15:08:06 +00:00

150 lines
6.2 KiB
Scheme

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2021 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2025 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;; Copyright © 2025-2026 Sharlatan Hellseher <sharlatanus@gmail.com>
;;;
;;; 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 uucp)
#:use-module (gnu packages gcc)
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-compression)
#:use-module (gnu packages golang-crypto)
#:use-module (gnu packages golang-web)
#:use-module (gnu packages golang-xyz)
#:use-module (gnu packages texinfo)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix gexp)
#:use-module (guix build-system gnu)
#:use-module (guix build-system go))
(define-public uucp
(package
(name "uucp")
(version "1.07")
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnu/uucp/uucp-"
version ".tar.gz"))
(sha256
(base32
"0b5nhl9vvif1w3wdipjsk8ckw49jj1w85xw1mmqi3zbcpazia306"))))
(build-system gnu-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'configure
(lambda _
;; The old 'configure' script doesn't support the arguments
;; that we pass by default.
(setenv "CONFIG_SHELL" (which "sh"))
(invoke "./configure"
(string-append "--prefix=" #$output)
(string-append "--infodir=" #$output
"/share/info")))))))
(native-inputs (list gcc-13))
(home-page "https://www.gnu.org/software/uucp/uucp.html")
(synopsis "UUCP protocol implementation")
(description
"Taylor UUCP is the GNU implementation of UUCP (Unix-to-Unix Copy), a
set of utilities for remotely transferring files, email and net news
between computers.")
(license gpl2+)))
(define-public nncp
(package
(name "nncp")
(version "8.13.0")
(source
(origin
(method url-fetch)
(uri (string-append "http://www.nncpgo.org/download/nncp-"
version ".tar.xz"))
(sha256
(base32
"1x057liwly7pk73l866nsbk3pcx9ndh1f0syjzc9hl80k076iqwc"))
(modules '((ice-9 ftw)
(guix build utils)))
(snippet
#~(begin
;; TODO: Find out how to obtain sources for go.cypherpunks.ru and
;; go.cypherpunks.su.
(with-directory-excursion "src/vendor"
(for-each delete-file-recursively
(list "github.com"
"go.uber.org"
"golang.org"
"gvisor.dev"
"lukechampine.com")))
;; The hack to trick go-build-system.
(rename-file "src" "v8")))))
(build-system go-build-system)
(arguments
(list
#:install-source? #f
#:import-path "go.cypherpunks.su/nncp/v8/cmd/..."
#:unpack-path "go.cypherpunks.su/nncp"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-paths
(lambda* (#:key inputs unpack-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" unpack-path "/v8")
(substitute* (list "pipe.go" "toss_test.go")
(("/bin/sh")
(search-input-file inputs "/bin/sh"))
(("; cat")
(format #f "; ~a" (search-input-file inputs "/bin/cat"))))))))))
(inputs
(list go-github-com-arceliar-ironwood
go-github-com-davecgh-go-xdr
go-github-com-dustin-go-humanize
go-github-com-flynn-noise
go-github-com-fsnotify-fsnotify
go-github-com-gologme-log
go-github-com-gorhill-cronexpr
go-github-com-hjson-hjson-go-v4
go-github-com-klauspost-compress
go-github-com-yggdrasil-network-yggdrasil-go
;; go-go-cypherpunks-ru-balloon ; sourcing from vendor
;; go-go-cypherpunks-su-recfile-v2 ; sourcing from vendor
go-golang-org-x-crypto
go-golang-org-x-net
go-golang-org-x-sys
go-golang-org-x-term
go-gvisor-dev-gvisor
go-lukechampine-com-blake3))
(native-inputs
(list texinfo))
(home-page "http://www.nncpgo.org/")
(synopsis "Store and forward utilities")
(description "NNCP (Node to Node copy) is a collection of utilities
simplifying secure store-and-forward files, mail and command exchanging.
These utilities are intended to help build up small size (dozens of nodes)
ad-hoc friend-to-friend (F2F) statically routed darknet delay-tolerant
networks for fire-and-forget secure reliable files, file requests, Internet
mail and commands transmission. All packets are integrity checked, end-to-end
encrypted, explicitly authenticated by known participants public keys. Onion
encryption is applied to relayed packets. Each node acts both as a client and
server, can use push and poll behaviour model. Multicasting areas, offline
sneakernet/floppynet, dead drops, sequential and append-only CD-ROM/tape
storages, air-gapped computers and online TCP daemon with full-duplex
resumable data transmission exists are all supported.")
(license gpl3)))