Commit 85a710ef authored by Astro's avatar Astro
Browse files

nix files: fix

parent c1101921
......@@ -36,12 +36,15 @@ let
CARGO_HOME="$(mktemp -d cargo-home.XXX)";
preBuild = ''
export CPATH="${glibc_multi.dev}/include:${stdenv.cc.cc}/lib/gcc/$(cc -dumpmachine)/${lib.getVersion pkgsCross.arm-embedded.stdenv.cc.cc}/include"
cd example
'';
doCheck = false;
installPhase = ''
mkdir -p $out/apps
cp ../target/thumbv7em-none-eabi/release/l0dable-example $out/apps/example.elf
for f in target/thumbv7em-none-eabi/release/* ; do
if [ -x $f ] && [ ! -d $f ] ; then
cp $f $out/apps/$(basename $f).elf
fi
done
'';
};
in {
......
......@@ -13,11 +13,8 @@ stdenv.mkDerivation {
openocd
];
# Set Environment Variables
RUST_BACKTRACE = 1;
LIBCLANG_PATH="${llvmPackages.libclang}/lib"
shellHook = ''
export LIBCLANG_PATH=${llvmPackages.libclang}/lib
echo "Run 'cd example && cargo build --release'"
echo "Run 'cargo build --release'"
'';
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment