hashlink: add haxelib library to output (#257628)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
PERARD-G N.
2024-08-22 14:31:22 +02:00
committed by GitHub
co-authored by Sandro
parent 1201edc7c4
commit 7f43bed360
@@ -44,6 +44,15 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ getconf ];
# append default installPhase with library install for haxe
postInstall = let
haxelibPath = "$out/lib/haxe/hashlink/${lib.replaceStrings [ "." ] [ "," ] version}";
in ''
mkdir -p "${haxelibPath}"
echo -n "${version}" > "${haxelibPath}/../.current"
cp -r other/haxelib/* "${haxelibPath}"
'';
postFixup = lib.optionalString stdenv.isDarwin ''
install_name_tool -change libhl.dylib $out/lib/libhl.dylib $out/bin/hl
'';