add LLVM copy from nixpkgs #114
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "srenblad/zynq-rs:add_llvm_11"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a stripped down copy of LLVM 11 from
nixpkgs-23.11
. Only includesllvmPackages_11.clang-unwrapped
andllvmPackages_11.llvm
.Motivation:
rustc
and LLVM versions need to be compatible to avoid linker bug. Currentrustc
version in repository is not compatible with LLVM 12 or higher. Due tollvmPackages_11
being removed onnixpkgs-unstable
, a stripped copy from the stable branch is added to this repository and called from theflake.nix
. Additionally addsllvmPackages_11
to the output of this flake to be used byartiq-zynq
.Why not use <nixpkgs/...> builtin?
While it works, it requires --impure flag.
Can
llvmPackages_11
be retrieved frommozilla-overlay
?As I understand it, the overlay uses the
llvmPackages
provided bynixpkgs-unstable
and thus does not exposellvmPackages_11
.Why not add another
nixos-23.11
channel to the inputs of this flake?This works and is a simple fix, however it adds bloat to the dev environment.
WIP: add LLVM copy from nixpkgsto add LLVM copy from nixpkgs