7 , postgresqlSupport ? false
8 , templateToolkitSupport ? false
12 sqitch = perlPackages.AppSqitch;
13 modules = with perlPackages; [ AlgorithmBackoff ]
14 ++ lib.optional mysqlSupport DBDmysql
15 ++ lib.optional postgresqlSupport DBDPg
16 ++ lib.optional templateToolkitSupport TemplateToolkit;
21 version = sqitch.version;
23 nativeBuildInputs = [ makeWrapper ] ++ lib.optional stdenv.isDarwin shortenPerlShebang;
30 for d in bin/sqitch etc lib share ; do
31 # make sure dest alreay exists before symlink
32 # this prevents installing a broken link into the path
33 if [ -e ${sqitch}/$d ]; then
34 ln -s ${sqitch}/$d $out/$d
37 '' + lib.optionalString stdenv.isDarwin ''
38 shortenPerlShebang $out/bin/sqitch
42 wrapProgram $out/bin/sqitch --prefix PERL5LIB : ${lib.escapeShellArg (perlPackages.makeFullPerlPath modules)}
46 inherit (sqitch.meta) description homepage license platforms;
47 mainProgram = "sqitch";