2015-03-18 13:32:46 +00:00
|
|
|
{ name, stdenv, perl, makeWrapper, sqitchModule, databaseModule }:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${name}-${sqitchModule.version}";
|
|
|
|
buildInputs = [ perl makeWrapper sqitchModule databaseModule ];
|
|
|
|
unpackPhase = ":";
|
|
|
|
buildPhase = ":";
|
|
|
|
installPhase = ''
|
2015-03-15 13:59:41 +00:00
|
|
|
mkdir -p $out/bin
|
2015-03-15 15:06:01 +00:00
|
|
|
for d in bin/sqitch etc lib share ; do
|
|
|
|
ln -s ${sqitchModule}/$d $out/$d
|
|
|
|
done
|
2015-03-15 13:59:41 +00:00
|
|
|
'';
|
2015-03-18 13:32:46 +00:00
|
|
|
dontStrip = true;
|
|
|
|
postFixup = "wrapProgram $out/bin/sqitch --prefix PERL5LIB : $PERL5LIB";
|
2015-03-15 13:59:41 +00:00
|
|
|
}
|