rustc: avoid corrupting or1k crates
This commit is contained in:
parent
8868145a8b
commit
e20918e5cb
|
@ -3,6 +3,7 @@
|
||||||
, targetToolchains ? []
|
, targetToolchains ? []
|
||||||
, targetPatches ? []
|
, targetPatches ? []
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, runCommand
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -61,20 +62,9 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
runCommand "rustc" {}
|
||||||
name = "rustc";
|
''
|
||||||
src = ./.;
|
|
||||||
installPhase = ''
|
|
||||||
mkdir $out
|
|
||||||
mkdir -p $out/lib/rustlib/or1k-unknown-none/lib/
|
mkdir -p $out/lib/rustlib/or1k-unknown-none/lib/
|
||||||
cp -r ${or1k-crates}/* $out/lib/rustlib/or1k-unknown-none/lib/
|
cp -r ${or1k-crates}/* $out/lib/rustlib/or1k-unknown-none/lib/
|
||||||
cp -r ${rustc_internal}/* $out
|
cp -r ${rustc_internal}/* $out
|
||||||
'';
|
''
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = https://www.rust-lang.org/;
|
|
||||||
description = "A safe, concurrent, practical language";
|
|
||||||
maintainers = with maintainers; [ sb0 ];
|
|
||||||
license = [ licenses.mit licenses.asl20 ];
|
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue