picocrypt: fix evaluation on Darwin

This was referencing `libGL.dev`, which no longer exists on
Darwin. Since most of these dependencies are just for its vendored
GLFW, and most of them weren’t even needed on Darwin anyway, copy
the build inputs from our GLFW package instead.
This commit is contained in:
Emily
2024-07-04 15:43:58 +01:00
parent 929a2bf061
commit a5b1dedb48
+9 -13
View File
@@ -8,7 +8,7 @@
makeDesktopItem,
xorg,
libGL,
glfw,
gtk3,
pkg-config,
wrapGAppsHook3,
@@ -34,18 +34,14 @@ buildGoModule rec {
"-w"
];
buildInputs = [
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libXinerama
xorg.libXxf86vm
libGL.dev
gtk3
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Kernel
];
buildInputs =
# Depends on a vendored, patched GLFW.
glfw.buildInputs or [ ]
++ glfw.propagatedBuildInputs or [ ]
++ lib.optionals (!stdenv.isDarwin) [
gtk3
xorg.libXxf86vm
];
nativeBuildInputs = [
copyDesktopItems