Skip to content

Commit

Permalink
php: builder link bins to $out/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
tinybeachthor committed Sep 9, 2022
1 parent 266a010 commit 4d023a7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/subsystems/php/builders/granular/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion src/subsystems/php/builders/simple/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d023a7

Please sign in to comment.