13
13
((gnu packages linux) #:select (linux-libre-headers-6.1))
14
14
(gnu packages llvm)
15
15
(gnu packages mingw)
16
- (gnu packages moreutils)
17
16
(gnu packages pkg-config)
18
17
((gnu packages python) #:select (python-minimal))
19
18
((gnu packages python-build) #:select (python-tomli))
20
19
((gnu packages python-crypto) #:select (python-asn1crypto))
21
20
((gnu packages tls) #:select (openssl))
22
21
((gnu packages version-control) #:select (git-minimal))
23
22
(guix build-system cmake)
23
+ (guix build-system gnu)
24
24
(guix build-system python)
25
25
(guix build-system trivial)
26
26
(guix download)
27
27
(guix gexp)
28
28
(guix git-download)
29
29
((guix licenses) #:prefix license:)
30
30
(guix packages)
31
- ((guix utils) #:select (substitute-keyword-arguments)))
31
+ ((guix utils) #:select (cc-for-target substitute-keyword-arguments)))
32
32
33
33
(define-syntax-rule (search-our-patches file-name ...)
34
34
" Return the list of absolute file names corresponding to each
@@ -487,6 +487,36 @@ inspecting signatures in Mach-O binaries.")
487
487
((" ^install-others =.*$" )
488
488
(string-append " install-others = " out " /etc/rpc\n " )))))))))))))
489
489
490
+ ; ; The sponge tool from moreutils.
491
+ (define-public sponge
492
+ (package
493
+ (name " sponge" )
494
+ (version " 0.69" )
495
+ (source (origin
496
+ (method url-fetch)
497
+ (uri (string-append
498
+ " https://git.joeyh.name/index.cgi/moreutils.git/snapshot/
499
+ moreutils-" version " .tar.gz" ))
500
+ (file-name (string-append " moreutils-" version " .tar.gz" ))
501
+ (sha256
502
+ (base32
503
+ " 1l859qnzccslvxlh5ghn863bkq2vgmqgnik6jr21b9kc6ljmsy8g" ))))
504
+ (build-system gnu-build-system)
505
+ (arguments
506
+ (list #:phases
507
+ #~(modify-phases %standard-phases
508
+ (delete 'configure )
509
+ (replace 'install
510
+ (lambda* (#:key outputs #:allow-other-keys)
511
+ (let ((bin (string-append (assoc-ref outputs " out" ) " /bin" )))
512
+ (install-file " sponge" bin)))))
513
+ #:make-flags
514
+ #~(list " sponge" (string-append " CC=" #$(cc-for-target)))))
515
+ (home-page " https://joeyh.name/code/moreutils/" )
516
+ (synopsis " Miscellaneous general-purpose command-line tools" )
517
+ (description " Just sponge" )
518
+ (license license:gpl2+)))
519
+
490
520
(packages->manifest
491
521
(append
492
522
(list ; ; The Basics
@@ -502,7 +532,7 @@ inspecting signatures in Mach-O binaries.")
502
532
patch
503
533
gawk
504
534
sed
505
- moreutils
535
+ sponge
506
536
; ; Compression and archiving
507
537
tar
508
538
gzip
0 commit comments