2018-10-16 21:48:57 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
2019-12-02 22:29:40 +00:00
|
|
|
, fetchFromGitiles
|
2018-10-16 21:48:57 +01:00
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
buildPythonPackage {
|
2018-10-16 21:48:57 +01:00
|
|
|
pname = "gyp";
|
|
|
|
version = "2015-06-11";
|
|
|
|
disabled = isPy3k;
|
|
|
|
|
2019-12-02 22:29:40 +00:00
|
|
|
src = fetchFromGitiles {
|
|
|
|
url = "https://chromium.googlesource.com/external/gyp";
|
2018-10-16 21:48:57 +01:00
|
|
|
rev = "fdc7b812f99e48c00e9a487bd56751bbeae07043";
|
|
|
|
sha256 = "1imgxsl4mr1662vsj2mlnpvvrbz71yk00w8p85vi5bkgmc6awgiz";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = stdenv.lib.optionals stdenv.isDarwin ''
|
|
|
|
sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' pylib/gyp/xcode_emulation.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = stdenv.lib.optionals stdenv.isDarwin [
|
|
|
|
./no-darwin-cflags.patch
|
|
|
|
./no-xcode.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool to generate native build files";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://chromium.googlesource.com/external/gyp/+/master/README.md";
|
2018-10-16 21:48:57 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ codyopel ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|