blob: 7d3c6e842c099cc790f51b4894a1c970b06865b3 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
(use-modules (gnu packages commencement)
(guix gexp))
(define hello-gexp
(with-imported-modules '((guix build utils))
#~(begin
(use-modules (guix build utils))
(set-path-environment-variable "PATH"
'("bin")
(list #$gcc-toolchain))
(set-path-environment-variable "C_INCLUDE_PATH"
'("include")
(list #$gcc-toolchain))
(set-path-environment-variable "LIBRARY_PATH"
'("lib")
(list #$gcc-toolchain))
(invoke "gcc" #$(local-file "hello.c")
"-o" #$output))))
(computed-file "hello" hello-gexp)
|