1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/opencl-clhpp/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

29 lines
725 B
Nix

{ stdenv, fetchFromGitHub, cmake, python, opencl-headers }:
stdenv.mkDerivation rec {
pname = "opencl-clhpp";
version = "2.0.10";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCL-CLHPP";
rev = "v${version}";
sha256 = "0h5kpg5cl8wzfnqmv6i26aig2apv06ffm9p3rh35938n9r8rladm";
};
nativeBuildInputs = [ cmake python ];
propagatedBuildInputs = [ opencl-headers ];
preConfigure = ''
cmakeFlags="-DCMAKE_INSTALL_PREFIX=$out/include -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF"
'';
meta = with stdenv.lib; {
description = "OpenCL Host API C++ bindings";
homepage = http://github.khronos.org/OpenCL-CLHPP/;
license = licenses.mit;
platforms = platforms.unix;
};
}