From ce709163f2df2de0fa8691add5acdecc440d126c Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 28 Dec 2020 16:49:46 +0100 Subject: [PATCH] libraspberrypi: fix output libraspberrypi provided an empty directory. The during https://github.com/NixOS/nixpkgs/pull/107637, this was refactored to use cmakeFlags. cmakeFlags can't use `$out` directly. `$out` is a bash variable, so to use it there, `${placeholder "out"}` is needed, otherwise it'll pick `"$out"` literally. --- 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 57a8a0e191a..664b8d1a7e0 100644 --- a/pkgs/development/libraries/libraspberrypi/default.nix +++ b/pkgs/development/libraries/libraspberrypi/default.nix @@ -27,7 +27,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkg-config ]; cmakeFlags = [ (if (stdenv.hostPlatform.isAarch64) then "-DARM64=ON" else "-DARM64=OFF") - "-DVMCS_INSTALL_PREFIX=$out" + "-DVMCS_INSTALL_PREFIX=${placeholder "out"}" ]; meta = with stdenv.lib; {