From 8496689f75a9036b28315e241e9902d103872a5f Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Fri, 25 Nov 2022 15:21:13 +0800 Subject: [PATCH] rosenthal: Add dropbear/static. * rosenthal/packages/ssh.scm: New file. (dropbear/static): New variable. --- rosenthal/packages/ssh.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 rosenthal/packages/ssh.scm diff --git a/rosenthal/packages/ssh.scm b/rosenthal/packages/ssh.scm new file mode 100644 index 0000000..f19df8a --- /dev/null +++ b/rosenthal/packages/ssh.scm @@ -0,0 +1,26 @@ +;; SPDX-FileCopyrightText: 2022 Hilton Chain +;; +;; SPDX-License-Identifier: GPL-3.0-or-later + +(define-module (rosenthal packages ssh) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module (guix utils) + #:use-module (gnu packages compression) + #:use-module (gnu packages multiprecision) + #:use-module (gnu packages ssh)) + +(define-public dropbear/static + (let ((base dropbear)) + (package + (inherit dropbear) + (name "dropbear-static") + (arguments + (substitute-keyword-arguments (package-arguments base) + ((#:configure-flags flags) + #~(append #$flags (list "--enable-static"))))) + (inputs + (modify-inputs (package-inputs base) + (append `(,zlib "static")) + (replace "libtomcrypt" `(,libtomcrypt "static")) + (replace "libtommath" `(,libtommath "static")))))))