gitsvn wrapper adding needed perl libs to environment so that you can use git-svn out of the box

svn path=/nixpkgs/trunk/; revision=11299
This commit is contained in:
Marc Weber 2008-03-27 10:57:54 +00:00
parent 67af514783
commit 8c3e522f79
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,29 @@
args: with args;
if (!args.subversion.perlBindings) then abort "svn perl bindings required to install gitsvnwrapper"
else args.stdenv.mkDerivation {
inherit git perlLibs subversion;
name = "git-svn-wrapper";
phases = "buildPhase";
buildPhase = "
gitperllib=\$git/lib/site_perl
for i in \$perlLibs; do
gitperllib=\$gitperllib:\$i/lib/site_perl
done
ensureDir \$out/bin
for a in \$git/bin/*; do
target=\$out/bin/\$(basename $a)
target=\$out/bin/\$(basename $a)
echo \"#!/bin/sh
export GITPERLLIB=\$gitperllib
PATH=\\\$PATH:$subversion/bin
$a \\\"\\\$@\\\"
\" > \$target
chmod +x \$target
done
";
meta = {
description = "simple wrapper around git adding env variables so that git-svn works without extra work";
};
}

View File

@ -5062,6 +5062,11 @@ let pkgs = rec {
emacs = if (getConfig ["git" "useEmacs"] true) then emacs else null;
};
gitsvnwrapper = import ../applications/version-management/git/git-svn-wrapper.nix {
inherit subversion git stdenv;
perlLibs = [ perlLWP perlURI perlTermReadKey subversion ];
};
gkrellm = import ../applications/misc/gkrellm {
inherit fetchurl stdenv gettext pkgconfig;
inherit (gtkLibs) glib gtk;