11 version = "unstable-2022-04-01";
12 format = "setuptools";
14 src = fetchFromGitiles {
15 url = "https://chromium.googlesource.com/external/gyp";
16 rev = "9ecf45e37677743503342ee4c6a76eaee80e4a7f";
17 hash = "sha256-LUlF2VhRnuDwJLdITgmXIQV/IuKdx1KXQkiPVHKrl4Q=";
20 patches = lib.optionals stdenv.isDarwin [
21 ./no-darwin-cflags.patch
25 propagatedBuildInputs = [
29 pythonImportsCheck = [ "gyp" "gyp.generator" ];
31 # Make mac_tool.py executable so that patchShebangs hook processes it. This
32 # file is copied and run by builds using gyp on macOS
34 chmod +x "$out/${python.sitePackages}/gyp/mac_tool.py"
38 description = "A tool to generate native build files";
40 homepage = "https://gyp.gsrc.io";
41 license = licenses.bsd3;
42 maintainers = with maintainers; [ codyopel ];