diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-05-08 21:46:31 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-05-08 21:46:31 -0400 |
commit | 922589053724885437b2c75257ab36383f95c378 (patch) | |
tree | 95f2637f70ac56c923f1fb3033d27d7af6601a58 /pkgs/development/libraries/mesa | |
parent | 4acc4348476faf5f9c93429e561c3d99024239d9 (diff) | |
download | nixlib-922589053724885437b2c75257ab36383f95c378.tar nixlib-922589053724885437b2c75257ab36383f95c378.tar.gz nixlib-922589053724885437b2c75257ab36383f95c378.tar.bz2 nixlib-922589053724885437b2c75257ab36383f95c378.tar.lz nixlib-922589053724885437b2c75257ab36383f95c378.tar.xz nixlib-922589053724885437b2c75257ab36383f95c378.tar.zst nixlib-922589053724885437b2c75257ab36383f95c378.zip |
mesa: use platforms instead of throw
mesaPlatforms can be used in the platforms attr.
Diffstat (limited to 'pkgs/development/libraries/mesa')
-rw-r--r-- | pkgs/development/libraries/mesa/default.nix | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index c9ce97849e1a..05c5116a01d5 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -25,10 +25,6 @@ with stdenv.lib; -if ! elem stdenv.hostPlatform.system platforms.mesaPlatforms then - throw "unsupported platform for Mesa" -else - let defaultGalliumDrivers = optionals (elem "drm" eglPlatforms) @@ -273,7 +269,7 @@ let self = stdenv.mkDerivation { description = "An open source implementation of OpenGL"; homepage = https://www.mesa3d.org/; license = licenses.mit; # X11 variant, in most files - platforms = platforms.linux ++ platforms.darwin; + platforms = platforms.mesaPlatforms; maintainers = with maintainers; [ vcunat ]; }; }; |