Skip to content

Instantly share code, notes, and snippets.

@Yappaholic
Created April 7, 2026 13:31
Show Gist options
  • Select an option

  • Save Yappaholic/47514387b163e376144d608ca5955026 to your computer and use it in GitHub Desktop.

Select an option

Save Yappaholic/47514387b163e376144d608ca5955026 to your computer and use it in GitHub Desktop.
Guix manifest for Rust development with C FFI
(use-modules (gnu packages llvm)
(guix search-paths)
(gnu packages build-tools)
(gnu packages rust))
(define %clang-with-env
(manifest
(list
(manifest-entry
(name "clang-with-env")
(version "21")
(item clang-toolchain-21)
(search-paths (list
(search-path-specification
(variable "LIBCLANG_PATH")
(files (list "lib")))))))))
(concatenate-manifests (list
%clang-with-env
(specifications->manifest
'(
"rust"
"rust:cargo"
"rust:rust-src"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment