summary refs log tree commit diff
path: root/pkgs/development/tools/misc/sqitch/default.nix
blob: 0a1032cecf81a633df795dd98bb5e69c74de0b5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ name, stdenv, perl, makeWrapper, sqitchModule, databaseModule }:
stdenv.mkDerivation {
  name = "${name}-${sqitchModule.version}";
  buildInputs = [ perl makeWrapper sqitchModule databaseModule ];
  unpackPhase = ":";
  buildPhase = ":";
  installPhase = ''
    mkdir -p $out/bin
    for d in bin/sqitch etc lib share ; do
      ln -s ${sqitchModule}/$d $out/$d
    done
  '';
  dontStrip = true;
  postFixup = "wrapProgram $out/bin/sqitch --prefix PERL5LIB : $PERL5LIB";
}