diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2021-12-20 00:33:51 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2021-12-20 23:23:40 +0100 |
commit | 0a17eee8ebd7847085419028ce6e1f44238cb8f9 (patch) | |
tree | b900da14bacb628550c3dd74eb17f360e9329289 /gnu/packages/bash.scm | |
parent | 62d2c36e77013ae7246a7bbcb98ffc22c709745b (diff) |
gnu: Add bash-with-syslog.
* gnu/packages/bash.scm (bash-with-syslog): New variable.
Diffstat (limited to 'gnu/packages/bash.scm')
-rw-r--r-- | gnu/packages/bash.scm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index cf40ee94f6..72758560cd 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -269,6 +269,23 @@ without modification.") (delete-file-recursively (string-append out "/share")) #t)))))))))) +(define-public bash-with-syslog + (package + (inherit bash) + (name "bash-with-syslog") + (arguments + (substitute-keyword-arguments (package-arguments bash) + ((#:phases phases '%standard-phases) + `(modify-phases ,phases + (add-after 'unpack 'enable-syslogging + (lambda _ + (substitute* "config-top.h" + (("/\\* #define SYSLOG_HISTORY \\*/") + "#define SYSLOG_HISTORY")))))))) + (description + "Bash is the shell, or command-line interpreter, of the GNU system. This +variant logs the history to syslog."))) + (define-public bash-completion (package (name "bash-completion") |