mirror of https://github.com/m-labs/artiq.git
firmware: deal with rust nonsense
Fixes "error: edition 2021 is unstable and only available with -Z unstable-options. error: could not compile `alloc`"
This commit is contained in:
parent
24d2520655
commit
602b680b9d
10
flake.nix
10
flake.nix
|
@ -42,6 +42,10 @@
|
||||||
cargo = rust;
|
cargo = rust;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
cargo-xbuild = pkgs.cargo-xbuild.overrideAttrs(oa: {
|
||||||
|
postPatch = "substituteInPlace src/sysroot.rs --replace 2021 2018";
|
||||||
|
});
|
||||||
|
|
||||||
vivadoDeps = pkgs: with pkgs; [
|
vivadoDeps = pkgs: with pkgs; [
|
||||||
libxcrypt-legacy
|
libxcrypt-legacy
|
||||||
ncurses5
|
ncurses5
|
||||||
|
@ -186,7 +190,7 @@
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
(pkgs.python3.withPackages(ps: [ migen misoc (artiq.withExperimentalFeatures experimentalFeatures) ps.packaging ]))
|
(pkgs.python3.withPackages(ps: [ migen misoc (artiq.withExperimentalFeatures experimentalFeatures) ps.packaging ]))
|
||||||
rust
|
rust
|
||||||
pkgs.cargo-xbuild
|
cargo-xbuild
|
||||||
pkgs.llvmPackages_14.clang-unwrapped
|
pkgs.llvmPackages_14.clang-unwrapped
|
||||||
pkgs.llvm_14
|
pkgs.llvm_14
|
||||||
pkgs.lld_14
|
pkgs.lld_14
|
||||||
|
@ -360,7 +364,7 @@
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(packages.x86_64-linux.python3-mimalloc.withPackages(ps: with packages.x86_64-linux; [ migen misoc ps.paramiko microscope ps.packaging ] ++ artiq.propagatedBuildInputs))
|
(packages.x86_64-linux.python3-mimalloc.withPackages(ps: with packages.x86_64-linux; [ migen misoc ps.paramiko microscope ps.packaging ] ++ artiq.propagatedBuildInputs))
|
||||||
rust
|
rust
|
||||||
pkgs.cargo-xbuild
|
cargo-xbuild
|
||||||
pkgs.llvmPackages_14.clang-unwrapped
|
pkgs.llvmPackages_14.clang-unwrapped
|
||||||
pkgs.llvm_14
|
pkgs.llvm_14
|
||||||
pkgs.lld_14
|
pkgs.lld_14
|
||||||
|
@ -383,7 +387,7 @@
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(pkgs.python3.withPackages(ps: with packages.x86_64-linux; [ migen misoc artiq ps.packaging ]))
|
(pkgs.python3.withPackages(ps: with packages.x86_64-linux; [ migen misoc artiq ps.packaging ]))
|
||||||
rust
|
rust
|
||||||
pkgs.cargo-xbuild
|
cargo-xbuild
|
||||||
pkgs.llvmPackages_14.clang-unwrapped
|
pkgs.llvmPackages_14.clang-unwrapped
|
||||||
pkgs.llvm_14
|
pkgs.llvm_14
|
||||||
pkgs.lld_14
|
pkgs.lld_14
|
||||||
|
|
Loading…
Reference in New Issue