forked from M-Labs/thermostat
nix: custom build phase
buildRustPackage runs `cargo build --target ${stdenv.hostPlatform.config}` which is wrong. how did this ever work with nixos 19.03?
This commit is contained in:
parent
c420dcad9e
commit
155a67c056
@ -42,6 +42,11 @@ buildRustPackage rec {
|
|||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
export CARGO_HOME=$(mktemp -d cargo-home.XXX)
|
||||||
|
cargo build --release
|
||||||
|
'';
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
|
Loading…
Reference in New Issue
Block a user