From e89369fae6fd9a08058026f264357ad2f0c8c827 Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Thu, 24 Dec 2020 14:59:14 -0500 Subject: [PATCH] libraspberrypi: fix cross-compile conventions --- pkgs/development/libraries/libraspberrypi/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libraspberrypi/default.nix b/pkgs/development/libraries/libraspberrypi/default.nix index bca46f012f82..57a8a0e191a1 100644 --- a/pkgs/development/libraries/libraspberrypi/default.nix +++ b/pkgs/development/libraries/libraspberrypi/default.nix @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkg-config ]; cmakeFlags = [ - (if (stdenv.targetPlatform.system == "aarch64-linux") then "-DARM64=ON" else "-DARM64=OFF") + (if (stdenv.hostPlatform.isAarch64) then "-DARM64=ON" else "-DARM64=OFF") "-DVMCS_INSTALL_PREFIX=$out" ];