hashlink: add haxelib library to output (#257628)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user