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.
This commit is contained in:
Alyssa Ross 2024-08-30 08:34:22 +02:00
parent 7d0d974fc2
commit d4a72a3935
25 changed files with 49 additions and 29 deletions

View File

@ -114,6 +114,4 @@ in {
genode = filterDoubles predicates.isGenode;
embedded = filterDoubles predicates.isNone;
mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux" "armv7l-linux" "armv7a-linux" "aarch64-linux" "powerpc64-linux" "powerpc64le-linux" "aarch64-darwin" "riscv64-linux"];
}

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, SDL, SDL_ttf, SDL_image, libSM, libICE, libGLU, libGL, libpng, lua5, autoconf, automake }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, SDL, SDL_ttf, SDL_image, libSM, libICE, libGLU, libGL, libpng, lua5, autoconf, automake, mesa }:
stdenv.mkDerivation rec {
pname = "gravit";
@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
view in 3D and zoom in and out.
'';
platforms = lib.platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
hydraPlatforms = lib.platforms.linux; # darwin times out
};
}

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, cmake, eigen, avogadrolibs, molequeue, hdf5
, openbabel, qttools, wrapQtAppsHook
, openbabel, qttools, wrapQtAppsHook, mesa
}:
let
@ -44,7 +44,7 @@ in stdenv.mkDerivation rec {
mainProgram = "avogadro2";
maintainers = with maintainers; [ sheepforce ];
homepage = "https://github.com/OpenChemistry/avogadroapp";
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
license = licenses.bsd3;
};
}

View File

@ -5,7 +5,7 @@
fetchFromGitHub,
nix-update-script,
pkg-config,
libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms,
libGLSupported ? lib.elem stdenv.hostPlatform.system mesa.meta.platforms,
openglSupport ? libGLSupported,
libGL,
alsaSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid,

View File

@ -7,7 +7,8 @@
, libiconv
, Cocoa
, autoSignDarwinBinariesHook
, libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
, mesa
, libGLSupported ? lib.elem stdenv.hostPlatform.system mesa.meta.platforms
, openglSupport ? libGLSupported
, libGLU
}:

View File

@ -13,6 +13,7 @@
, libXext
, libXft
, libXfixes
, mesa
, xinput
, CoreServices
}:
@ -50,6 +51,6 @@ stdenv.mkDerivation rec {
homepage = "http://fox-toolkit.org";
license = lib.licenses.lgpl3;
maintainers = [ ];
platforms = lib.platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
};
}

View File

@ -1,6 +1,7 @@
{ lib, stdenv, fetchurl, libGLU, libXmu, libXi, libXext
, AGL, OpenGL
, testers
, mesa
}:
stdenv.mkDerivation (finalAttrs: {
@ -52,6 +53,6 @@ stdenv.mkDerivation (finalAttrs: {
license = licenses.free; # different files under different licenses
#["BSD" "GLX" "SGI-B" "GPL2"]
pkgConfigModules = [ "glew" ];
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
};
})

View File

@ -10,6 +10,7 @@
, OpenGL
, enableEGL ? (!stdenv.isDarwin)
, testers
, mesa
}:
stdenv.mkDerivation (finalAttrs: {
@ -74,8 +75,8 @@ stdenv.mkDerivation (finalAttrs: {
pkgConfigModules = [ "glew" ];
platforms = with platforms;
if enableEGL then
subtractLists darwin mesaPlatforms
subtractLists darwin mesa.meta.platforms
else
mesaPlatforms;
mesa.meta.platforms;
};
})

View File

@ -15,6 +15,7 @@
, runtimeShell
, withXorg ? true
, testers
, mesa
}:
stdenv.mkDerivation (finalAttrs: {
@ -65,7 +66,7 @@ stdenv.mkDerivation (finalAttrs: {
mainProgram = "ilur";
license = licenses.lgpl2;
pkgConfigModules = [ "IL" ];
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
maintainers = [ ];
};
})

View File

@ -29,7 +29,11 @@ rec {
homepage = "https://www.mesa3d.org/";
changelog = "https://www.mesa3d.org/relnotes/${version}.html";
license = with lib.licenses; [ mit ]; # X11 variant, in most files
platforms = lib.platforms.mesaPlatforms;
platforms = [
"i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux"
"armv6l-linux" "armv7l-linux" "armv7a-linux" "aarch64-linux"
"powerpc64-linux" "powerpc64le-linux" "aarch64-darwin" "riscv64-linux"
];
maintainers = with lib.maintainers; [ primeos vcunat ]; # Help is welcome :)
};
}

View File

@ -66,7 +66,7 @@ stdenv.mkDerivation rec {
mainProgram = "wflinfo";
homepage = "https://www.waffle-gl.org/";
license = licenses.bsd2;
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
maintainers = with maintainers; [ Flakebi ];
};
}

View File

@ -5,6 +5,7 @@
fetchFromGitHub,
setuptools,
glfw,
mesa,
moderngl,
numpy,
pillow,
@ -70,7 +71,7 @@ buildPythonPackage rec {
changelog = "https://github.com/moderngl/moderngl-window/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ c0deaddict ];
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
broken = stdenv.isDarwin;
};
}

View File

@ -41,7 +41,7 @@ buildPythonPackage rec {
changelog = "https://github.com/moderngl/moderngl/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ c0deaddict ];
# should be mesaPlatforms, darwin build breaks.
# should be mesa.meta.platforms, darwin build breaks.
platforms = platforms.linux;
};
}

View File

@ -17,6 +17,7 @@
ffmpeg-full,
openal,
libpulseaudio,
mesa,
}:
buildPythonPackage rec {
@ -109,6 +110,6 @@ buildPythonPackage rec {
homepage = "http://www.pyglet.org/";
description = "Cross-platform windowing and multimedia library";
license = licenses.bsd3;
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
};
}

View File

@ -5,6 +5,7 @@
fetchPypi,
pkgs,
pillow,
mesa,
}:
buildPythonPackage rec {
@ -80,6 +81,6 @@ buildPythonPackage rec {
liberal BSD-style Open-Source license.
'';
license = licenses.bsd3;
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
};
}

View File

@ -13,6 +13,7 @@
pyqt5-sip,
pyqt-builder,
libsForQt5,
mesa,
enableVerbose ? true,
withConnectivity ? false,
withMultimedia ? false,
@ -201,7 +202,7 @@ buildPythonPackage rec {
description = "Python bindings for Qt5";
homepage = "https://riverbankcomputing.com/";
license = licenses.gpl3Only;
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
maintainers = with maintainers; [ sander ];
};
}

View File

@ -13,6 +13,7 @@
pyqt-builder,
qt6Packages,
pythonOlder,
mesa,
withMultimedia ? true,
withWebSockets ? true,
withLocation ? true,
@ -150,7 +151,7 @@ buildPythonPackage rec {
description = "Python bindings for Qt6";
homepage = "https://riverbankcomputing.com/";
license = licenses.gpl3Only;
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
maintainers = with maintainers; [ LunNova ];
};
}

View File

@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchPypi,
mesa,
}:
buildPythonPackage rec {
@ -23,7 +24,7 @@ buildPythonPackage rec {
description = "Python bindings for Qt5";
homepage = "https://www.riverbankcomputing.com/software/sip/";
license = licenses.gpl3Only;
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
maintainers = with maintainers; [ LunNova ];
};
}

View File

@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchPypi,
mesa,
}:
buildPythonPackage rec {
@ -23,7 +24,7 @@ buildPythonPackage rec {
description = "Python bindings for Qt5";
homepage = "https://www.riverbankcomputing.com/software/sip/";
license = licenses.gpl3Only;
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
maintainers = with maintainers; [ sander ];
};
}

View File

@ -8,6 +8,7 @@
pythonOlder,
pyqt6,
python,
mesa,
}:
buildPythonPackage rec {
@ -67,7 +68,7 @@ buildPythonPackage rec {
description = "Python bindings for Qt6 QtCharts";
homepage = "https://riverbankcomputing.com/";
license = licenses.gpl3Only;
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
maintainers = with maintainers; [ dandellion ];
};
}

View File

@ -10,6 +10,7 @@
pythonOlder,
pyqt6,
python,
mesa,
}:
buildPythonPackage rec {
@ -84,7 +85,7 @@ buildPythonPackage rec {
description = "Python bindings for Qt6 WebEngine";
homepage = "https://riverbankcomputing.com/";
license = licenses.gpl3Only;
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
maintainers = with maintainers; [
LunNova
nrdxp

View File

@ -12,6 +12,7 @@
pyqt5,
sip,
pyqt-builder,
mesa,
}:
let
@ -98,7 +99,7 @@ buildPythonPackage (
description = "Python bindings for Qt5";
homepage = "http://www.riverbankcomputing.co.uk";
license = lib.licenses.gpl3;
hydraPlatforms = lib.lists.intersectLists libsForQt5.qtwebengine.meta.platforms lib.platforms.mesaPlatforms;
hydraPlatforms = lib.lists.intersectLists libsForQt5.qtwebengine.meta.platforms mesa.meta.platforms;
};
}
// lib.optionalAttrs (stdenv.buildPlatform != stdenv.hostPlatform) {

View File

@ -25,6 +25,8 @@
AVKit,
CoreAudio,
swift,
mesa,
}:
let
@ -336,7 +338,7 @@ python3.pkgs.buildPythonApplication {
'';
homepage = "https://apps.ankiweb.net";
license = licenses.agpl3Plus;
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
maintainers = with maintainers; [
euank
oxij

View File

@ -16,6 +16,7 @@
, libXrender
, libxcb
, libxkbcommon
, mesa
}:
stdenv.mkDerivation rec {
@ -71,7 +72,7 @@ stdenv.mkDerivation rec {
description = "OpenGL test suite, and test-suite runner";
homepage = "https://gitlab.freedesktop.org/mesa/piglit";
license = licenses.free; # custom license. See COPYING in the source repo.
platforms = platforms.mesaPlatforms;
inherit (mesa.meta) platforms;
maintainers = with maintainers; [ Flakebi ];
mainProgram = "piglit";
};

View File

@ -178,7 +178,7 @@ let
in {
/* Common platform groups on which to test packages. */
inherit (platforms) unix linux darwin cygwin all mesaPlatforms;
inherit (platforms) unix linux darwin cygwin all;
inherit
assertTrue