From a760bff3efa44c282ed119032a6831bdaac79e7b Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 7 Apr 2025 15:57:53 +0100 Subject: Initial commit --- hello-world/make.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 hello-world/make.scm (limited to 'hello-world/make.scm') diff --git a/hello-world/make.scm b/hello-world/make.scm new file mode 100644 index 0000000..7d3c6e8 --- /dev/null +++ b/hello-world/make.scm @@ -0,0 +1,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) -- cgit v1.2.3