git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #30403 from matthewbauer/sqitch-fix

sqitch: fix on broken symlinks

commit210731c7dd4335494cccee99436be8fb9d061087 authorDaiderd Jordan <daiderd@gmail.com> dateSun 15 Oct 2017, 12:51 (9 years ago) parent4a01ad0b5610ed
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;