{ stdenv, cmake, pkgconfig, libbsd, nasm, udev, fetchFromGitHub, clang, gnustepbase }:
stdenv.mkDerivation {
name = "libobjc2";
src = fetchFromGitHub {
owner = "gnustep";
repo = "libobjc2";
rev = "2ea11117a392646d960f1e861494e2f27873b15b";
sha256 = "0blbl4k94ll10qq1c0p35dqgr5029ap9kca5h6zx5ws1pg6p35v1";
};
buildInputs = [ cmake clang ];
NIX_CFLAGS_COMPILE = [ "-I${stdenv.cc.cc}/include/c++/4.9.3/" "-I${stdenv.cc.cc}/include/c++/4.9.3/x86_64-unknown-linux-gnu/" ];
cmakeFlags = [ "-DCMAKE_CXX_COMPILER=clang" "-DCMAKE_C_COMPILER=clang" ];
}