diff --git a/src/subsystems/php/builders/granular/default.nix b/src/subsystems/php/builders/granular/default.nix index cf43d6e382..3d63f6d4fa 100644 --- a/src/subsystems/php/builders/granular/default.nix +++ b/src/subsystems/php/builders/granular/default.nix @@ -163,7 +163,14 @@ rm $out/dependencies.json ''; installPhase = '' - true + if [ -d $PKG_OUT/bin ] + then + mkdir -p $out/bin + for bin in $(ls $PKG_OUT/bin) + do + ln -s $PKG_OUT/bin/$bin $out/bin/$bin + done + fi ''; }; in diff --git a/src/subsystems/php/builders/simple/default.nix b/src/subsystems/php/builders/simple/default.nix index 7178ea1661..3f5cb92c70 100644 --- a/src/subsystems/php/builders/simple/default.nix +++ b/src/subsystems/php/builders/simple/default.nix @@ -125,7 +125,14 @@ popd ''; installPhase = '' - true + if [ -d $PKG_OUT/bin ] + then + mkdir -p $out/bin + for bin in $(ls $PKG_OUT/bin) + do + ln -s $PKG_OUT/bin/$bin $out/bin/$bin + done + fi ''; }; in