flakes: cleanup
This commit is contained in:
parent
e749a96971
commit
af9f3903be
@ -40,19 +40,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = "";
|
|
||||||
nativeBuildInputs = [ pkgs.llvm ];
|
nativeBuildInputs = [ pkgs.llvm ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export CARGO_HOME=$(mktemp -d cargo-home.XXX)
|
|
||||||
cargo build --release --bin thermostat
|
cargo build --release --bin thermostat
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
cargo test --target=${pkgs.rust.toRustTarget pkgs.stdenv.targetPlatform};
|
|
||||||
'';
|
|
||||||
|
|
||||||
# binaryName defaults to the `name` arg (i.e. the Rust package name);
|
|
||||||
# it is used as the Cargo binary filename
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out $out/nix-support
|
mkdir -p $out $out/nix-support
|
||||||
cp target/thumbv7em-none-eabihf/release/thermostat $out/thermostat.elf
|
cp target/thumbv7em-none-eabihf/release/thermostat $out/thermostat.elf
|
||||||
|
Loading…
Reference in New Issue
Block a user