glew110: split out/dev outputs

Reduces closure size from 55.9M -> 44.8M by removing propagated
dependencies to other dev packages in the main output.
main
Pierre Bourdon 2 years ago
parent 94320898c5
commit ee85543dd9
No known key found for this signature in database
GPG Key ID: 6FB80DCD84DA0F1C
  1. 6
      pkgs/development/libraries/glew/1.10.nix

@ -16,6 +16,8 @@ stdenv.mkDerivation rec {
buildInputs = if stdenv.isDarwin then [ AGL ] else [ xlibsWrapper libXmu libXi ];
propagatedBuildInputs = if stdenv.isDarwin then [ OpenGL ] else [ libGLU ]; # GL/glew.h includes GL/glu.h
outputs = [ "out" "dev" ];
patchPhase = ''
sed -i 's|lib64|lib|' config/Makefile.linux
${optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
@ -32,8 +34,8 @@ stdenv.mkDerivation rec {
postInstall = ''
mkdir -pv $out/share/doc/glew
mkdir -p $out/lib/pkgconfig
cp glew*.pc $out/lib/pkgconfig
mkdir -p $dev/lib/pkgconfig
cp glew*.pc $dev/lib/pkgconfig
cp -r README.txt LICENSE.txt doc $out/share/doc/glew
'';

Loading…
Cancel
Save