mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Add Sqitch database management tool
This commit is contained in:
parent
c668b45c6c
commit
d6e0169c6f
21
pkgs/development/tools/misc/sqitch/default.nix
Normal file
21
pkgs/development/tools/misc/sqitch/default.nix
Normal 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
|
||||
)"
|
||||
'';
|
||||
}
|
@ -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
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user