allegro5: add fixDarwinDylibNames

Allows Allegro-based programs on macOS/Darwin to locate the libraries
at runtime, without needing a wrapper to set `DYLD_LIBRARY_PATH`.
This commit is contained in:
Rhys-T
2025-04-14 14:17:56 -04:00
parent d9f938cc6d
commit 7ef2fa3b1b
+9 -4
View File
@@ -4,6 +4,7 @@
cmake,
enet,
fetchFromGitHub,
fixDarwinDylibNames,
flac,
freetype,
gtk3,
@@ -49,10 +50,14 @@ stdenv.mkDerivation rec {
sha256 = "sha256-agE3K+6VhhG/LO52fiesCsOq1fNYVRhdW7aKdPCbTOo=";
};
nativeBuildInputs = [
cmake
pkg-config
];
nativeBuildInputs =
[
cmake
pkg-config
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
fixDarwinDylibNames
];
buildInputs =
[