diff --git a/pkgs/by-name/op/opencl-cts/package.nix b/pkgs/by-name/op/opencl-cts/package.nix index e49e10599024..f60f6f2f683e 100644 --- a/pkgs/by-name/op/opencl-cts/package.nix +++ b/pkgs/by-name/op/opencl-cts/package.nix @@ -48,6 +48,11 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeFeature "OPENCL_LIBRARIES" "OpenCL") ]; + # Upstream installs to bin/$ (e.g. bin/Release/); flatten it. + postInstall = '' + mv "$out/bin/''${cmakeBuildType:-Release}"/* "$out"/bin/ + ''; + meta = { description = "OpenCL Conformance Test Suite"; homepage = "https://github.com/KhronosGroup/OpenCL-CTS";