From ede40c109d32e5ff1974baaeacd228a367f527ef Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 17 Mar 2025 21:40:40 -0400 Subject: Don't patch libGL path in static GLFW --- flake.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 84d005d..d85d86a 100644 --- a/flake.nix +++ b/flake.nix @@ -28,7 +28,12 @@ craneLib = (crane.mkLib pkgs).overrideToolchain rustToolchainFor; glfw = pkgs.glfw.overrideAttrs (cur: prev: { - cmakeFlags = []; + cmakeFlags = []; # by default, static linking is disabled here + # for some reason, the default glfw package hardcodes a nix store path to libGL + # see: https://github.com/NixOS/nixpkgs/pull/47175 + # this makes it impossible to run the binary on another system + # I'd much rather just load whatever we find on LD_LIBRARY_PATH etc, since this is much easier to control + env = {}; }); native = rec { -- cgit v1.2.3