Skip to content

Commit

Permalink
sqitch: fix on Darwin
Browse files Browse the repository at this point in the history
Fixes #30389.

(cherry picked from commit b5610ed)
  • Loading branch information
matthewbauer authored and LnL7 committed Oct 15, 2017
1 parent 68ef4b1 commit 8d5f2ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/development/tools/misc/sqitch/default.nix
Expand Up @@ -11,7 +11,11 @@ stdenv.mkDerivation {
installPhase = ''
mkdir -p $out/bin
for d in bin/sqitch etc lib share ; do
ln -s ${sqitchModule}/$d $out/$d
# make sure dest alreay exists before symlink
# this prevents installing a broken link into the path
if [ -e ${sqitchModule}/$d ]; then
ln -s ${sqitchModule}/$d $out/$d
fi
done
'';
dontStrip = true;
Expand Down

0 comments on commit 8d5f2ae

Please sign in to comment.