git.iko.soy/typeable/nixpkgs
on master help sign in
sqitch: fix on Darwin

Fixes #30389.

commitb5610ed3f0cfdad9a6c7d542e963659f63e4f3a7 authorMatthew Bauer <mjbauer95@gmail.com> dateSat 14 Oct 2017, 02:10 (9 years ago) parent06fc476
1 file changed+5−1
pkgs/development/tools/misc/sqitch/default.nix+5−1
pkgs/development/tools/misc/sqitch/default.nix+5−1
@@ -11,7 +11,11 @@ stdenv.mkDerivation {
1111 installPhase = ''
1212 mkdir -p $out/bin
1313 for d in bin/sqitch etc lib share ; do
14− ln -s ${sqitchModule}/$d $out/$d
14+ # make sure dest alreay exists before symlink
15+ # this prevents installing a broken link into the path
16+ if [ -e ${sqitchModule}/$d ]; then
17+ ln -s ${sqitchModule}/$d $out/$d
18+ fi
1519 done
1620 '';
1721 dontStrip = true;