gnu: axoloti-runtime: Simplify build.
authorMorgan Smith <Morgan.J.Smith@outlook.com>
Wed, 7 Apr 2021 18:14:56 +0000 (14:14 -0400)
committerEfraim Flashner <efraim@flashner.co.il>
Thu, 8 Apr 2021 08:00:05 +0000 (11:00 +0300)
* gnu/packages/axoloti.scm (axoloti-runtime)[arguments]: Remove
unnecessary environment variable assignments in custom 'build phase.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
gnu/packages/axoloti.scm

index 3049051..0b12e4f 100644 (file)
          (delete 'configure)
          (replace 'build
            ;; Build Axoloti firmware with cross-compiler
-           (lambda* (#:key inputs #:allow-other-keys)
-             (let* ((toolchain (assoc-ref inputs "cross-toolchain"))
-                    (headers   (string-append
-                                toolchain
-                                "/arm-none-eabi/include:"
-                                toolchain
-                                "/arm-none-eabi/include/arm-none-eabi/armv7e-m")))
-               (setenv "CROSS_CPATH" headers)
-               (setenv "CROSS_CPLUS_INCLUDE_PATH" headers)
-               (setenv "CROSS_LIBRARY_PATH"
-                       (string-append toolchain
-                                      "/arm-none-eabi/lib")))
+           (lambda _
              (with-directory-excursion "platform_linux"
                (invoke "sh" "compile_firmware.sh"))))
          (replace 'install