Commit Graph

58 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Alyssa Ross
d4a72a3935 lib.platforms.mesaPlatforms: remove
Mesa is a package like any other.  There's no reason for it to be a
special case with its platforms listed in lib, because if other
packages want to refer to mesa's platforms, they can access the
platforms from the package meta like they would for any other package.
2024-08-31 10:28:31 +02:00
Florian Klink
d025091b35 glew: enable both EGL and GLX
Re-roll of https://github.com/NixOS/nixpkgs/pull/328907, but this time
adding the patch from ArchLinux, which keeps both EGL and GLX code paths
active.

Remove overrides where EGL was explicitly requested previously, as well
as the glew-egl package variant.

Add an alias for glew-egl, in case there's any users of this outside
of nixpkgs.
2024-08-11 15:11:22 +03:00
K900
0840cd62c0
Revert "glew: default enableEGL to true" 2024-07-23 00:26:32 +03:00
Florian Klink
a93c422fed glew: default enableEGL to true 2024-07-21 15:10:55 +02:00
éclairevoyant
0926bdbf98
treewide: fix uses of finalAttrs.pname in source urls 2024-07-12 20:23:39 -04:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Tristan Ross
9ab91b56dd
glew110: fix cross compiling 2024-05-25 18:41:45 -07:00
Jörg Thalheim
c4744988ff glew: fix cmake's FindGLEW.cmake by adding more cmake target properties
This is particular needed to build flightgear.
2023-02-26 01:20:27 +01:00
John Ericson
5fd449df41 glew: Add meta.pkgConfigModules and test 2023-02-11 11:03:00 -05:00
Shawn8901
a59dda942c treewide: remove global with lib; statements in pkgs/development 2023-01-26 18:31:02 +01:00
Ferry Jérémie
65d7e87fdb treewide: replace http by https when https is a permanent redirection 2023-01-22 02:46:49 +01:00
Sergei Trofimovich
af148bcb89
Merge pull request #198670 from trofi/dlew-without-xlibsWrapper
glew: use xorg.* packages directly instead of xlibsWrapper indirection
2022-11-05 10:17:53 +00:00
Sergei Trofimovich
4bd4db0efe glew110: use xorg.* packages directly instead of xlibsWrapper indirection
Tested as no material change in `dev` and `out` outputs with `diffoscope`.
2022-10-30 16:37:33 +00:00
Sergei Trofimovich
7d163d83be glew: use xorg.* packages directly instead of xlibsWrapper indirection
Tested as no material change in `bin`, `dev` and `out` outputs with `diffoscope`.
2022-10-30 16:30:28 +00:00
Pierre Bourdon
ee85543dd9
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.
2022-09-21 03:46:20 +02:00
Dmitry Kalinkin
42368a62af
glew: switch to use cmake 2022-01-08 14:06:27 -05:00
Felix Buehler
7678aa30b4 pkgs/development: rename name to pname&version 2021-11-30 21:32:28 +01:00
Rick van Schijndel
805d4ee7da glew: support cross-compilation 2021-08-18 22:00:19 +02:00
Felix Buehler
58a2d4b666 development: /s/name/pname&version/ 2021-07-02 00:03:10 +02:00
Ben Siraphob
66e44425c6 pkgs/development/libraries: stdenv.lib -> lib 2021-01-21 19:11:02 -08:00
Dmitry Kalinkin
5ba4eb2d2e
glew{,110}: don't depend on mesa on darwin 2020-12-17 16:53:35 -05:00
R. RyanTM
56de5bed5f glew: 2.1.0 -> 2.2.0 2020-05-01 09:03:55 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
John Ericson
0828e2d8c3 treewide: Remove usage of remaining redundant platform compatability stuff
Want to get this out of here for 18.09, so it can be deprecated
thereafter.
2018-08-30 17:20:32 -04:00
Matthew Bauer
76999cc40e treewide: remove aliases in nixpkgs
This makes the command ‘nix-env -qa -f. --arg config '{skipAliases =
true;}'’ work in Nixpkgs.

Misc...

- qtikz: use libsForQt5.callPackage

  This ensures we get the right poppler.

- rewrites:

  docbook5_xsl -> docbook_xsl_ns
  docbook_xml_xslt -> docbook_xsl

diffpdf: fixup
2018-07-18 23:25:20 -04:00
Ryan Mulligan
2f3dc5108b glew: 2.0.0 -> 2.1.0
Semi-automatic update generated by https://github.com/ryantm/nix-update tools.

This update was made based on information from https://repology.org/metapackage/glew/versions.

These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 2.1.0 with grep in /nix/store/r6kh84dxq1pi99hcc2dip060kwbg5164-glew-2.1.0-bin
- directory tree listing: https://gist.github.com/5a1de7b9365c14af6aca6f9b9c76b6c1
2018-03-25 14:02:34 -07:00
Alexander V. Nikolaev
1bc1909e5b treewide: transition from mesa_glu to libGLU 2018-02-24 17:05:43 +02:00
Orivej Desh
78af59354c glew: fix darwin install name 2017-11-27 15:59:50 +00:00
John Ericson
252b36a28d misc pkgs: Recategorize some dependencies 2017-09-05 11:37:10 -04:00
John Ericson
95c8277701 misc pkgs: Remove unneeded *Platform == *Platform comparisons
PR #26007 used these to avoid causing a mass rebuild. Now that we know
things work, we do that to clean up.
2017-06-30 10:09:31 -04:00
hsloan
de1125ea2c glew default: Don't use stdenv ? cross 2017-06-28 19:33:39 -04:00
hsloan
ade488c52a glew 1.10: Don't use stdenv ? cross 2017-06-28 19:32:57 -04:00
John Ericson
a40ceb2782 glew: Rely on cc-wrapper can to export these env vars 2017-06-28 18:30:46 -04:00
David McFarland
7b169579c4 glew: 1.13.0 -> 2.0.0 2017-02-07 23:49:54 -04:00
Eelco Dolstra
cf26f610aa glew: Use separate outputs and don't install static libraries 2016-09-01 18:57:43 +02:00
Matthew Bauer
0edb35ad78 glew110: fix darwin build 2016-08-16 19:25:40 +00:00
Vladimír Čunát
4917a4f8b3 Merge master into staging 2015-10-23 01:57:14 +02:00
Nikolay Amiantov
f8bf2326a4 glew-1.10: add package 2015-10-10 14:26:41 +03:00
William A. Kennington III
33f1ebb8f2 glew: 1.11.0 -> 1.13.0 2015-10-02 16:08:42 -07:00
Vladimír Čunát
21e3ff658a x11: replace its usage by xlibsWrapper directly
Scilab note: the parameters already had pointed to nonexistent dirs
before this set of refactoring. But that config wasn't even used by
default.
2015-09-15 12:08:24 +02:00
Vladimír Čunát
084626deec glew: update, and tweak meta 2014-08-21 21:28:42 +02:00
aszlig
c7bac81c66
Merge 'mingw-w64' and 'darwin' into cross-win-osx.
Both branches have quite a lot in common, so it's time for a merge and
do the cleanups with respect to both implementations and also generalize
both implementations as much as possible.

This also closes #1876.

Conflicts:
	pkgs/development/interpreters/lua-5/5.2.nix
	pkgs/development/libraries/SDL/default.nix
	pkgs/development/libraries/glew/default.nix
	pkgs/top-level/all-packages.nix
2014-03-12 10:16:51 +01:00
aszlig
3d73bf6c57
glew/cross: Fix build for Darwin.
The Makefile still contained calls to install with the -s (strip)
option, which we don't want because it uses the native strip utility and
we're going to crossStrip in fixupPhase later anyway.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:46 +01:00
aszlig
e64b342fa8
Use mingw-w64 for 32bit Windows builds as well.
Mingw(32) is rather poorly maintaned and has quite a lot of bugs. And
because our Windows cross builds were also poorly maintained and most of
the cross-tests were broken as well, I'm just taking this step and try
to switch to mingw-w64 for everything "cross Windows".

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-03 22:38:48 +01:00
aszlig
b9bc42d0f3
glew/cross: Fix building with mingw-w64.
This also cleans up the package expression a bit and we no longer
directly override the phases (except patchPhase).

Also for cross-builds we're using the stock mingw target and pass CC, LD
and STRIP to make, because the mingw-w64 targets of the upstream package
are outdated.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-02-24 07:26:24 +01:00
Nixpkgs Monitor
efa05777b0 glew: update from 1.9.0 to 1.10.0 2013-12-18 18:18:29 +02:00
Evgeny Egorochkin
0d76e1cb94 glew: install glewinfo and visualinfo 2013-10-24 13:01:53 +03:00
Vladimír Čunát
de5b992ecf qt, glew: propagate glu
After removing qt's dependency on the symlinked combination of mesa and glu,
many qt apps were missing it now (since e9f0d10).
I resove this to a compromise.
2013-08-06 10:37:15 +02:00
Song Wenwu
e094ccc10c glew: install libraries to $out/lib instead of $out/lib64 2013-06-09 08:33:34 +08:00