Add Sqitch database management tool

This commit is contained in:
Robin Bate Boerop 2015-03-15 09:59:41 -04:00
parent c668b45c6c
commit d6e0169c6f
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,21 @@
{ stdenv, writeScript, makeWrapper, sqitchModule }:
stdenv.mkDerivation rec {
name = "sqitch-0.999";
buildInputs = [ makeWrapper ];
propagatedNativeBuildInputs = [ sqitchModule ];
builder = writeScript (name + "-builder.sh") ''
. ${stdenv}/setup
mkdir -p $out/bin
cp ${sqitchModule}/bin/sqitch $out/bin
fixupPhase
wrapProgram $out/bin/sqitch \
--prefix PERL5LIB : \
"$(for i in "$propagatedNativeBuildInputs" ; do
for j in $(cat $i/nix-support/propagated-native-build-inputs) ; do
echo -n "$j"/lib/perl5/site_perl:
done
done
echo "$propagatedNativeBuildInputs"/lib/perl5/site_perl
)"
'';
}

View File

@ -7816,6 +7816,11 @@ let
planetary_annihilation = callPackage ../games/planetaryannihilation { };
sqitch = callPackage ../development/tools/misc/sqitch {
inherit stdenv writeScript makeWrapper ;
sqitchModule = perlPackages.AppSqitch;
};
### DEVELOPMENT / PYTHON MODULES
# python function with default python interpreter

View File

@ -235,6 +235,11 @@ let self = _self // overrides; _self = with self; {
IPCSystemSimple ListMoreUtils Moo PathClass PerlIOutf8_strict StringFormatter
StringShellQuote SubExporter TemplateTiny Throwable TryTiny TypeTiny URI
URIdb libintlperl namespaceautoclean
strictures ModuleRuntime DevelGlobalDestruction SubExporterProgressive
ImportInto ExporterTiny DataOptList ParamsUtil SubInstall RoleTiny
MooXTypesMooseLike ClassLoad ModuleImplementation ClassLoadXS
BHooksEndOfScope namespaceclean PackageStash SubIdentify
ClassMethodModifiers
];
doCheck = false; # Can't find home directory.
meta = {