pythonPackages.pyopengl: avoid dragging in 500M of -dev packages

Only the actual shared libraries are required to be installed, and they
are imported directly by path via ctypes. The package's patchPhase
already takes care of embedding the Nix store paths of the required
libraries into pyopengl.

This reduces the transitive closure size of PyOpenGL: 622M -> 136M.
This commit is contained in:
Pierre Bourdon 2020-04-20 04:23:29 +02:00 committed by Frederik Rietdijk
parent 3e7a2b9147
commit f52443efae

View File

@ -15,7 +15,7 @@ buildPythonPackage rec {
sha256 = "0bdf5ed600df30c8830455702338902528717c0af85ac5914f1dc5aa0bfa6eee";
};
propagatedBuildInputs = [ pkgs.libGLU pkgs.libGL pkgs.freeglut pillow ];
propagatedBuildInputs = [ pillow ];
patchPhase = let
ext = stdenv.hostPlatform.extensions.sharedLibrary; in ''