Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created January 13, 2016 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/0197704d36e7eea3bf23 to your computer and use it in GitHub Desktop.
Save cleverca22/0197704d36e7eea3bf23 to your computer and use it in GitHub Desktop.
{ 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" ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment