[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about scripts in guix-home

From: Oleg Pykhalov
Subject: Re: Question about scripts in guix-home
Date: Sat, 16 Oct 2021 15:40:51 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)


Fredrik Salomonsson <> writes:

> I decided to try out guix home. But I hit a bit of a snag. I'm trying to
> port my waybar config over to it, but cannot figure out how to set the
> execution bit on my two custom scripts I have.

I use the following, which creates ~/.local/bin/shellcheck executable file:
--8<---------------cut here---------------start------------->8---
 ;; ...
   (simple-service 'shellcheck-wrapper
                   (list `("local/bin/shellcheck"
                                 (with-output-to-file #$output
                                   (lambda ()
                                     (format #t "\
exec -a \"$0\" ~a/bin/shellcheck --shell=bash \"$@\"\n"
                                 (chmod #$output #o555)))))))))
--8<---------------cut here---------------end--------------->8---

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]