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:
parent
3e7a2b9147
commit
f52443efae
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
|||||||
sha256 = "0bdf5ed600df30c8830455702338902528717c0af85ac5914f1dc5aa0bfa6eee";
|
sha256 = "0bdf5ed600df30c8830455702338902528717c0af85ac5914f1dc5aa0bfa6eee";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pkgs.libGLU pkgs.libGL pkgs.freeglut pillow ];
|
propagatedBuildInputs = [ pillow ];
|
||||||
|
|
||||||
patchPhase = let
|
patchPhase = let
|
||||||
ext = stdenv.hostPlatform.extensions.sharedLibrary; in ''
|
ext = stdenv.hostPlatform.extensions.sharedLibrary; in ''
|
||||||
|
Loading…
Reference in New Issue
Block a user