rustc: make llvm override compatible with nixos-unstable

This commit is contained in:
Sebastien Bourdeauducq 2019-05-14 19:17:16 +08:00
parent 9f4538555e
commit 9e93a9cf39

View File

@ -23,6 +23,11 @@ rec {
rustc = (pkgs.rustc.overrideAttrs(oa: {
name = "${oa.pname}-${oa.version}-riscv";
patches = oa.patches ++ [ ./compilers/rustc-riscv32i.patch ];
})).override { inherit llvm_7; };
})).override {
inherit llvm_7;
pkgsBuildBuild = pkgs.pkgsBuildBuild // { inherit llvm_7; };
pkgsBuildHost = pkgs.pkgsBuildHost // { inherit llvm_7; };
pkgsBuildTarget = pkgs.pkgsBuildTarget // { inherit llvm_7; };
};
rust-riscv32i-crates = pkgs.callPackage ./compilers/rust-riscv32i-crates.nix { inherit rustc; };
}