rustc: make llvm override compatible with nixos-unstable

pull/1/head
Sebastien Bourdeauducq 2019-05-14 19:17:16 +08:00
parent 9f4538555e
commit 9e93a9cf39
1 changed files with 6 additions and 1 deletions

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; };
}