mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 18:42:15 +00:00
16 lines
476 B
Nix
16 lines
476 B
Nix
{ 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";
|
|
}
|