Skip to content

Commit

Permalink
Merge pull request #324580 from emilazy/push-lwlsznppxpzw
Browse files Browse the repository at this point in the history
[staging-next] picocrypt: fix evaluation on Darwin
  • Loading branch information
K900 authored Jul 4, 2024
2 parents 36cbae9 + a5b1ded commit 3f2ede5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
22 changes: 9 additions & 13 deletions pkgs/by-name/pi/picocrypt/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
makeDesktopItem,

xorg,
libGL,
glfw,
gtk3,
pkg-config,
wrapGAppsHook3,
Expand All @@ -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
Expand Down
6 changes: 2 additions & 4 deletions pkgs/development/libraries/glfw/3.x.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, lib, fetchFromGitHub, cmake
, libGL, libXrandr, libXinerama, libXcursor, libX11, libXi, libXext
, Carbon, Cocoa, Kernel, OpenGL, fixDarwinDylibNames
, Carbon, Cocoa, Kernel, fixDarwinDylibNames
, extra-cmake-modules, wayland
, wayland-scanner, wayland-protocols, libxkbcommon
}:
Expand All @@ -19,9 +19,7 @@ stdenv.mkDerivation rec {
# Fix linkage issues on X11 (https://github.com/NixOS/nixpkgs/issues/142583)
patches = ./x11.patch;

propagatedBuildInputs =
lib.optionals stdenv.isDarwin [ OpenGL ]
++ lib.optionals stdenv.isLinux [ libGL ];
propagatedBuildInputs = [ libGL ];

nativeBuildInputs = [ cmake extra-cmake-modules ]
++ lib.optional stdenv.isDarwin fixDarwinDylibNames
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20787,7 +20787,7 @@ with pkgs;
glfw-wayland-minecraft = callPackage ../development/libraries/glfw/3.x-wayland-minecraft.nix {};
glfw2 = callPackage ../development/libraries/glfw/2.x.nix { };
glfw3 = callPackage ../development/libraries/glfw/3.x.nix {
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa Kernel OpenGL;
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa Kernel;
};

glibc = callPackage ../development/libraries/glibc {
Expand Down

0 comments on commit 3f2ede5

Please sign in to comment.