feat: add a package for Debian ash that provides a /bin/sh symlink

pull/1/head
anemofilia 2023-09-21 16:01:27 -03:00
parent a604eda2a1
commit f7946b62c1
No known key found for this signature in database
GPG Key ID: 5A8F3D62C87A2B33
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
(define-module (radix packages shells)
#:use-module (gnu)
#:use-module (guix packages)
#:use-module (guix gexp)
#:use-module (gnu packages shells))
(define-public dash-next
(package
(inherit dash)
(arguments
(list #:configure-flags
#~(list "--with-libedit")
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'create-/bin/sh
(lambda _
(symlink (string-append #$output "/bin/dash")
(string-append #$output "/bin/sh")))))))
(description
"Dash is a POSIX-compliant @command{/bin/sh} implementation that aims to be
as small as possible, often without sacrificing speed. It is faster than the
GNU Bourne-Again Shell (@command{bash}) at most scripted tasks. Dash is a
direct descendant of NetBSD's Almquist Shell (@command{ash}). This package
provides, adtionally to @command{/bin/dash} a symlink to it under
@command{/bin/sh}.")))
dash-next