summaryrefslogtreecommitdiff
path: root/johnlepikhin/devel/c.scm
diff options
context:
space:
mode:
authorEvgenii Lepikhin <e.lepikhin@corp.mail.ru>2023-02-18 10:47:38 +0300
committerEvgenii Lepikhin <e.lepikhin@corp.mail.ru>2023-02-18 10:47:38 +0300
commitfe51702730c6ddc285240ea5799475afcad0dbea (patch)
tree259c1c5acd2dee0eee3734b0d5b4fcb907f62ca1 /johnlepikhin/devel/c.scm
parentfix: g-exp (diff)
downloadjohnlepikhin-guix-channel-fe51702730c6ddc285240ea5799475afcad0dbea.tar.gz
fix: local/bin/cc
Diffstat (limited to 'johnlepikhin/devel/c.scm')
-rw-r--r--johnlepikhin/devel/c.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/johnlepikhin/devel/c.scm b/johnlepikhin/devel/c.scm
index a968e7e..cf576b2 100644
--- a/johnlepikhin/devel/c.scm
+++ b/johnlepikhin/devel/c.scm
@@ -54,7 +54,15 @@
pkg-config)))
(define (add-files config)
- `((".local/bin/cc" ,(file-append #$gcc-toolset "/bin/gcc"))))
+ `((".local/bin/cc"
+ (begin
+ (with-output-to-file
+ #$output
+ (lambda _ (display
+ (string-append
+ "#! /bin/sh\n\n"
+ (file-append #$gcc-toolset "/bin/gcc")))))
+ (chmod #$output #o755)))))
(define home-devel-c-service-type
(service-type