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:
Astro 2019-05-09 21:00:45 +02:00
parent c420dcad9e
commit 155a67c056
1 changed files with 5 additions and 0 deletions

View File

@ -42,6 +42,11 @@ buildRustPackage rec {
EOF
'';
buildPhase = ''
export CARGO_HOME=$(mktemp -d cargo-home.XXX)
cargo build --release
'';
doCheck = false;
installPhase = ''
mkdir -p $out/lib