From dd8d859829ff34e36a2e68fb895be1ce13399f8f Mon Sep 17 00:00:00 2001 From: Benjamin Hipple Date: Fri, 10 Apr 2020 14:11:46 -0400 Subject: [PATCH] opencl-clhpp: fix install directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, it was installing to `$out/include/include`. Now it's correct: /nix/store/alw8idc8qhfhzw98banq2l5hmrdaglgm-opencl-clhpp-2.0.11 ├── include │   └── CL │   ├── cl2.hpp │   └── cl.hpp └── nix-support └── propagated-build-inputs 3 directories, 3 files --- pkgs/development/libraries/opencl-clhpp/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/opencl-clhpp/default.nix b/pkgs/development/libraries/opencl-clhpp/default.nix index cb8d9c788ca..bf45bc90f19 100644 --- a/pkgs/development/libraries/opencl-clhpp/default.nix +++ b/pkgs/development/libraries/opencl-clhpp/default.nix @@ -15,9 +15,10 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ opencl-headers ]; - preConfigure = '' - cmakeFlags="-DCMAKE_INSTALL_PREFIX=$out/include -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF" - ''; + cmakeFlags = [ + "-DBUILD_EXAMPLES=OFF" + "-DBUILD_TESTS=OFF" + ]; meta = with stdenv.lib; { description = "OpenCL Host API C++ bindings";