diff options
| author | LLLL Colonq <llll@colonq> | 2025-03-17 21:40:40 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-03-17 21:40:40 -0400 |
| commit | ede40c109d32e5ff1974baaeacd228a367f527ef (patch) | |
| tree | fa8e90e9ed87f406de1e0130f77af65bb5ba87f7 | |
| parent | bd759ae3cefdba9cb9f72b46409c1f1e74e70415 (diff) | |
Don't patch libGL path in static GLFW
| -rw-r--r-- | flake.nix | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 { |
