[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) |
Hi,
Fredrik Salomonsson <plattfot@posteo.net> 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---
(home-environment
;; ...
(services
(list
(simple-service 'shellcheck-wrapper
home-files-service-type
(list `("local/bin/shellcheck"
,(computed-file
"shellcheck-wrapper"
#~(begin
(with-output-to-file #$output
(lambda ()
(format #t "\
#!/bin/sh
exec -a \"$0\" ~a/bin/shellcheck --shell=bash \"$@\"\n"
#$shellcheck)))
(chmod #$output #o555)))))))))
--8<---------------cut here---------------end--------------->8---
signature.asc
Description: PGP signature