gnu: shepherd@1.0: Add dependency on gzip and zstd.

* gnu/packages/admin.scm (shepherd-1.0)[arguments]: New field.
[inputs]: New field.

Change-Id: If21f876bbf3fba933a8d997a95db91b961adfca3
This commit is contained in:
Ludovic Courtès 2024-12-11 15:42:55 +01:00
parent 94cd4227bd
commit c76a4ffad4
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012-2024 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2012-2025 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com> ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
;;; Copyright © 2014, 2015, 2016, 2018, 2019, 2020 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2014, 2015, 2016, 2018, 2019, 2020 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2014, 2015-2018, 2020-2023 Eric Bavier <bavier@posteo.net> ;;; Copyright © 2014, 2015-2018, 2020-2023 Eric Bavier <bavier@posteo.net>
@ -431,7 +431,19 @@ (define-public shepherd-1.0
version ".tar.gz")) version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1i8h4wp11nkn85vj79yh2sgzh5adgdvi6fgng4gkniycw58h0pc9")))))) "1i8h4wp11nkn85vj79yh2sgzh5adgdvi6fgng4gkniycw58h0pc9"))))
(arguments
(substitute-keyword-arguments (package-arguments shepherd-0.10)
((#:configure-flags flags #~'())
#~(list "--localstatedir=/var"
;; Gzip and zstd are used by the log rotation service.
(string-append "--with-gzip=" #$(this-package-input "gzip")
"/bin/gzip")
(string-append "--with-zstd=" #$(this-package-input "zstd")
"/bin/zstd")))))
(inputs (modify-inputs (package-inputs shepherd-0.10)
(append gzip zstd)))))
(define-public shepherd shepherd-0.10) (define-public shepherd shepherd-0.10)