From 86f22aa56a7bc7c65be35026b63ff8a0a45fc727 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Wed, 13 Sep 2023 00:10:41 -0300 Subject: [PATCH] opencl-headers: use cmake build This is makes the build process simpler and exports .cmake and pkg-config(.pc) files --- pkgs/development/libraries/opencl-headers/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/opencl-headers/default.nix b/pkgs/development/libraries/opencl-headers/default.nix index 6bb2b4c235ac..211a8b6b22e9 100644 --- a/pkgs/development/libraries/opencl-headers/default.nix +++ b/pkgs/development/libraries/opencl-headers/default.nix @@ -1,4 +1,7 @@ -{ lib, stdenv, fetchFromGitHub +{ lib +, stdenv +, fetchFromGitHub +, cmake }: stdenv.mkDerivation rec { @@ -12,10 +15,7 @@ stdenv.mkDerivation rec { sha256 = "sha256-BJDaDokyHgmyl+bGqCwG1J7iOvu0E3P3iYZ1/krot8s="; }; - installPhase = '' - mkdir -p $out/include/CL - cp CL/* $out/include/CL - ''; + nativeBuildInputs = [ cmake ]; meta = with lib; { description = "Khronos OpenCL headers version ${version}";