writers/write-bash-bin: add shellcheck pass
There's no checkPhase in the trivial builder, doing the check part of the build itself. This is fine :P
This commit is contained in:
parent
d5adfd6ce0
commit
f03e74464d
|
@ -1,5 +1,6 @@
|
|||
(define-module (lib writers)
|
||||
#:use-module (gnu)
|
||||
#:use-module (gnu packages haskell-apps)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix build-system trivial)
|
||||
#:use-module (guix gexp)
|
||||
|
@ -21,9 +22,11 @@
|
|||
#:builder
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((bin-name (string-append #$output "/bin/" #$name)))
|
||||
(let ((bin-name (string-append #$output "/bin/" #$name))
|
||||
(script-in-store #$(local-file script)))
|
||||
(invoke/quiet #+(file-append shellcheck "/bin/shellcheck") script-in-store)
|
||||
(mkdir-p (string-append #$output "/bin"))
|
||||
(copy-file #$(local-file script) bin-name)
|
||||
(copy-file script-in-store bin-name)
|
||||
(chmod bin-name #o0555)
|
||||
#t))))
|
||||
(home-page #f)
|
||||
|
|
Loading…
Reference in a new issue