Commit Graph

11 Commits

Author SHA1 Message Date
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Pierre Bourdon
f52443efae 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.
2020-04-20 08:54:36 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Guillaume Bouchard
5c11e174b2 pythonPackages.pyopengl: fix runtime shared library loading failure
This closes #76822.

pyopengl 3.1.4 introduced a new logic for shared library loading: it
tests a few combinations of library name and suffix (such as .so.X).

Our previous patch was just replacing the library name (e.g. 'glut') by
the full path to the nix store. This does not work anymore with pyopengl
3.1.4 new heuristic.

This commit just keep the behavior of pyopengl but adds the nix store
path to the list of tried paths.
2020-02-23 22:07:56 -08:00
Frederik Rietdijk
c5720f531b python.pkgs.pyopengl: fix pname of src 2019-12-15 16:23:16 +01:00
Frederik Rietdijk
21062aa215 python: pyopengl: 3.1.0 -> 3.1.4 2019-12-15 16:23:16 +01:00
adisbladis
c9d8624ccd
treewide: Get rid of libGLU_combined 2019-11-18 20:10:43 +00:00
Chris Ostrouchov
1a773a84fc pythonPackages.pyopengl: refactor move to python-modules 2018-10-27 09:07:22 +02:00
Ludovic Courtès
a86e0ad8aa pyopengl: Move to `python-packages.nix'.
svn path=/nixpkgs/trunk/; revision=20317
2010-03-01 17:08:25 +00:00
Ludovic Courtès
25e77977b9 PyOpenGL: Propagate build inputs that need it.
svn path=/nixpkgs/trunk/; revision=12609
2008-08-13 09:10:11 +00:00
Ludovic Courtès
61c0f30155 Add PyOpenGL.
svn path=/nixpkgs/trunk/; revision=12598
2008-08-12 15:40:01 +00:00