Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 884 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchgit 4, isPy3k 5}: 6 7buildPythonPackage rec { 8 pname = "gyp"; 9 version = "2015-06-11"; 10 disabled = isPy3k; 11 12 src = fetchgit { 13 url = "https://chromium.googlesource.com/external/gyp.git"; 14 rev = "fdc7b812f99e48c00e9a487bd56751bbeae07043"; 15 sha256 = "1imgxsl4mr1662vsj2mlnpvvrbz71yk00w8p85vi5bkgmc6awgiz"; 16 }; 17 18 prePatch = stdenv.lib.optionals stdenv.isDarwin '' 19 sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' pylib/gyp/xcode_emulation.py 20 ''; 21 22 patches = stdenv.lib.optionals stdenv.isDarwin [ 23 ./no-darwin-cflags.patch 24 ./no-xcode.patch 25 ]; 26 27 meta = with stdenv.lib; { 28 description = "A tool to generate native build files"; 29 homepage = https://chromium.googlesource.com/external/gyp/+/master/README.md; 30 license = licenses.bsd3; 31 maintainers = with maintainers; [ codyopel ]; 32 }; 33 34}