nixpkgs/pkgs/development/tools/misc/sqitch/default.nix

24 lines
541 B
Nix
Raw Normal View History

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