From 155a67c05683160a9e3b419f0d64f040ef36ab4d Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 9 May 2019 21:00:45 +0200 Subject: [PATCH] nix: custom build phase buildRustPackage runs `cargo build --target ${stdenv.hostPlatform.config}` which is wrong. how did this ever work with nixos 19.03? --- nix/adc2tcp.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nix/adc2tcp.nix b/nix/adc2tcp.nix index 83b7b06..ca28efa 100644 --- a/nix/adc2tcp.nix +++ b/nix/adc2tcp.nix @@ -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