From b5610ed3f0cfdad9a6c7d542e963659f63e4f3a7 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sat, 14 Oct 2017 02:10:35 -0500 Subject: sqitch: fix on Darwin Fixes #30389. --- pkgs/development/tools/misc/sqitch/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkgs/development/tools/misc/sqitch') diff --git a/pkgs/development/tools/misc/sqitch/default.nix b/pkgs/development/tools/misc/sqitch/default.nix index b7b42b59653a9..8328433a823f0 100644 --- a/pkgs/development/tools/misc/sqitch/default.nix +++ b/pkgs/development/tools/misc/sqitch/default.nix @@ -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; -- cgit 1.4.1