summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-03-17 21:40:40 -0400
committerLLLL Colonq <llll@colonq>2025-03-17 21:40:40 -0400
commitede40c109d32e5ff1974baaeacd228a367f527ef (patch)
treefa8e90e9ed87f406de1e0130f77af65bb5ba87f7
parentbd759ae3cefdba9cb9f72b46409c1f1e74e70415 (diff)
Don't patch libGL path in static GLFW
-rw-r--r--flake.nix7
1 files changed, 6 insertions, 1 deletions
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 {