diff --git a/gnu/packages/cryptsetup.scm b/gnu/packages/cryptsetup.scm index 44f9c77984..2b6cc635ee 100644 --- a/gnu/packages/cryptsetup.scm +++ b/gnu/packages/cryptsetup.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2016 Ludovic Courtès ;;; Copyright © 2019–2021 Tobias Geerinckx-Rice ;;; Copyright © 2024 Efraim Flashner +;;; Copyright © 2024 Janneke Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -35,9 +36,9 @@ #:use-module (gnu packages ruby) #:use-module (gnu packages web)) -(define-public cryptsetup +(define-public cryptsetup-minimal (package - (name "cryptsetup") + (name "cryptsetup-minimal") (version "2.6.1") (source (origin (method url-fetch) @@ -69,11 +70,7 @@ ;; (string-append "--with-libgcrypt-prefix=" (assoc-ref %build-inputs "libgcrypt")))))) - (native-inputs - (append (list pkg-config) - (if (supported-package? ruby-asciidoctor) - (list ruby-asciidoctor) - '()))) + (native-inputs (list pkg-config)) (inputs (list argon2 json-c @@ -100,6 +97,14 @@ block integrity kernel modules.") (license license:gpl2) (home-page "https://gitlab.com/cryptsetup/cryptsetup"))) +(define-public cryptsetup + (package/inherit cryptsetup-minimal + (name "cryptsetup") + (native-inputs `(,(if (supported-package? ruby-asciidoctor) + `("ruby-asciidoctor" ,ruby-asciidoctor) + '()) + ,@(package-native-inputs cryptsetup-minimal))))) + (define-public (libcryptsetup-propagated-inputs) (list argon2 json-c @@ -122,10 +127,10 @@ files). This assumes LIBRARY uses Libtool." (define-public cryptsetup-static ;; Stripped-down statically-linked 'cryptsetup' command for use in initrds. (package - (inherit cryptsetup) + (inherit cryptsetup-minimal) (name "cryptsetup-static") (arguments - (substitute-keyword-arguments (package-arguments cryptsetup) + (substitute-keyword-arguments (package-arguments cryptsetup-minimal) ((#:configure-flags flags ''()) `(cons* "--disable-shared" "--enable-static-cryptsetup"