diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-12 12:50:25 +0200 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-12 15:55:16 +0200 |
commit | b869f7d909562d04dd19183321fd84d8c9c17e4b (patch) | |
tree | 0f286d70011caa68c381f6fdab60b5e8abb496f0 /pkgs/by-name/su | |
parent | cf2c289cbd5552c964a9817ff670e7d1219dc1ce (diff) |
supersonic: drop glfw3.buildInputs
Diffstat (limited to 'pkgs/by-name/su')
-rw-r--r-- | pkgs/by-name/su/supersonic/package.nix | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/by-name/su/supersonic/package.nix b/pkgs/by-name/su/supersonic/package.nix index 9de886758526e..9b0fe4fd0634a 100644 --- a/pkgs/by-name/su/supersonic/package.nix +++ b/pkgs/by-name/su/supersonic/package.nix @@ -7,9 +7,11 @@ , pkg-config , desktopToDarwinBundle , xorg +, wayland +, wayland-protocols +, libxkbcommon , libglvnd , mpv -, glfw3 , darwin , waylandSupport ? false }: @@ -45,10 +47,17 @@ buildGoModule rec { ] ++ lib.optionals stdenv.isLinux [ xorg.libXxf86vm xorg.libX11 - ] - ++ (builtins.filter (p: !(lib.hasPrefix "apple-framework" p.name)) - (glfw3.override { inherit waylandSupport; }).buildInputs) - ++ lib.optionals stdenv.isDarwin [ + ] ++ lib.optionals (stdenv.isLinux && !waylandSupport) [ + xorg.libXrandr + xorg.libXinerama + xorg.libXcursor + xorg.libXi + xorg.libXext + ] ++ lib.optionals (stdenv.isLinux && waylandSupport) [ + wayland + wayland-protocols + libxkbcommon + ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk_11_0.frameworks.Cocoa darwin.apple_sdk_11_0.frameworks.Kernel darwin.apple_sdk_11_0.frameworks.OpenGL |