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 cf40ee94f60..72758560cde 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm | |||
| @@ -269,6 +269,23 @@ without modification.") | |||
| 269 | (delete-file-recursively (string-append out "/share")) | 269 | (delete-file-recursively (string-append out "/share")) |
| 270 | #t)))))))))) | 270 | #t)))))))))) |
| 271 | 271 | ||
| 272 | (define-public bash-with-syslog | ||
| 273 | (package | ||
| 274 | (inherit bash) | ||
| 275 | (name "bash-with-syslog") | ||
| 276 | (arguments | ||
| 277 | (substitute-keyword-arguments (package-arguments bash) | ||
| 278 | ((#:phases phases '%standard-phases) | ||
| 279 | `(modify-phases ,phases | ||
| 280 | (add-after 'unpack 'enable-syslogging | ||
| 281 | (lambda _ | ||
| 282 | (substitute* "config-top.h" | ||
| 283 | (("/\\* #define SYSLOG_HISTORY \\*/") | ||
| 284 | "#define SYSLOG_HISTORY")))))))) | ||
| 285 | (description | ||
| 286 | "Bash is the shell, or command-line interpreter, of the GNU system. This | ||
| 287 | variant logs the history to syslog."))) | ||
| 288 | |||
| 272 | (define-public bash-completion | 289 | (define-public bash-completion |
| 273 | (package | 290 | (package |
| 274 | (name "bash-completion") | 291 | (name "bash-completion") |
