summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-02-25 15:07:37 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-02-25 15:08:06 +0000
commitf58a46fd5f4576efaf2cac91080b03f64ec359e7 (patch)
tree7f44d46596d532f9046a00ab953a091ffef2ed83 /gnu
parent9db3cdb514ca919dfa1fd46733e957ef549d79ca (diff)
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
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/uucp.scm49
1 files changed, 10 insertions, 39 deletions
diff --git a/gnu/packages/uucp.scm b/gnu/packages/uucp.scm
index cde94ededbd..bcec21f0680 100644
--- a/gnu/packages/uucp.scm
+++ b/gnu/packages/uucp.scm
@@ -2,7 +2,7 @@
2;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2021 Arun Isaac <arunisaac@systemreboot.net> 3;;; Copyright © 2021 Arun Isaac <arunisaac@systemreboot.net>
4;;; Copyright © 2025 Artyom V. Poptsov <poptsov.artyom@gmail.com> 4;;; Copyright © 2025 Artyom V. Poptsov <poptsov.artyom@gmail.com>
5;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com> 5;;; Copyright © 2025-2026 Sharlatan Hellseher <sharlatanus@gmail.com>
6;;; 6;;;
7;;; This file is part of GNU Guix. 7;;; This file is part of GNU Guix.
8;;; 8;;;
@@ -71,7 +71,7 @@ between computers.")
71(define-public nncp 71(define-public nncp
72 (package 72 (package
73 (name "nncp") 73 (name "nncp")
74 (version "8.11.0") 74 (version "8.13.0")
75 (source 75 (source
76 (origin 76 (origin
77 (method url-fetch) 77 (method url-fetch)
@@ -79,7 +79,7 @@ between computers.")
79 version ".tar.xz")) 79 version ".tar.xz"))
80 (sha256 80 (sha256
81 (base32 81 (base32
82 "1wmg6k1nprk9b7vnnly3m6xxyma2l0xamnrq3xwahjhqv6y18hgc")) 82 "1x057liwly7pk73l866nsbk3pcx9ndh1f0syjzc9hl80k076iqwc"))
83 (modules '((ice-9 ftw) 83 (modules '((ice-9 ftw)
84 (guix build utils))) 84 (guix build utils)))
85 (snippet 85 (snippet
@@ -99,47 +99,18 @@ between computers.")
99 (arguments 99 (arguments
100 (list 100 (list
101 #:install-source? #f 101 #:install-source? #f
102 #:import-path "go.cypherpunks.su/nncp/v8" 102 #:import-path "go.cypherpunks.su/nncp/v8/cmd/..."
103 #:unpack-path "go.cypherpunks.su/nncp" 103 #:unpack-path "go.cypherpunks.su/nncp"
104 #:phases 104 #:phases
105 #~(modify-phases %standard-phases 105 #~(modify-phases %standard-phases
106 (add-after 'unpack 'fix-paths 106 (add-after 'unpack 'fix-paths
107 (lambda* (#:key import-path #:allow-other-keys) 107 (lambda* (#:key inputs unpack-path #:allow-other-keys)
108 (with-directory-excursion (string-append "src/" import-path) 108 (with-directory-excursion (string-append "src/" unpack-path "/v8")
109 (substitute* (list "pipe.go" "toss_test.go") 109 (substitute* (list "pipe.go" "toss_test.go")
110 (("/bin/sh") (which "sh")) 110 (("/bin/sh")
111 (("; cat") (format #f "; ~a" (which "cat"))))))) 111 (search-input-file inputs "/bin/sh"))
112 (replace 'build 112 (("; cat")
113 (lambda arguments 113 (format #f "; ~a" (search-input-file inputs "/bin/cat"))))))))))
114 (let ((path-prefix "go.cypherpunks.su/nncp/v8/cmd/"))
115 (for-each
116 (lambda (cmd)
117 (apply (assoc-ref %standard-phases 'build)
118 `(,@arguments #:import-path
119 ,(string-append path-prefix cmd))))
120 (list "nncp-ack"
121 "nncp-bundle"
122 "nncp-call"
123 "nncp-caller"
124 "nncp-cfgdir"
125 "nncp-cfgenc"
126 "nncp-cfgmin"
127 "nncp-cfgnew"
128 "nncp-check"
129 "nncp-cronexpr"
130 "nncp-daemon"
131 "nncp-exec"
132 "nncp-file"
133 "nncp-freq"
134 "nncp-hash"
135 "nncp-log"
136 "nncp-pkt"
137 "nncp-reass"
138 "nncp-rm"
139 "nncp-stat"
140 "nncp-toss"
141 "nncp-trns"
142 "nncp-xfer"))))))))
143 (inputs 114 (inputs
144 (list go-github-com-arceliar-ironwood 115 (list go-github-com-arceliar-ironwood
145 go-github-com-davecgh-go-xdr 116 go-github-com-davecgh-go-xdr