nixpkgs/pkgs/development/libraries/coprthr/default.nix

32 lines
958 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libelf, libconfig, libevent, which, unzip, perl, python
, bison, flex }:
stdenv.mkDerivation rec {
name = "coprthr-${version}";
version = "1.6";
src = fetchurl {
url = "https://github.com/browndeer/coprthr/archive/stable-${version}.zip";
sha256 = "042aykmcxhdpck0j6k5rcp6a0b5i377fv2nz96v1bpfhzxd1mjwg";
};
buildInputs =
[ libelf libconfig libevent which unzip perl python bison flex ];
configureFlags =
[ "--with-libelf=${libelf}"
"--with-libevent=${libevent}"
"--with-libconfig=${libconfig}"
"--with-opencl-icd-path=$out/etc/OpenCL/vendors"
"--enable-user-install"
];
meta = {
description = "The CO-PRocessing THReads SDK for OpenCL/STDCL";
homepage = "http://www.browndeertechnology.com/coprthr.htm";
license = stdenv.lib.licenses.lgpl3;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
};
}