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:
parent
67af514783
commit
8c3e522f79
29
pkgs/applications/version-management/git/git-svn-wrapper.nix
Normal file
29
pkgs/applications/version-management/git/git-svn-wrapper.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
@ -5062,6 +5062,11 @@ let pkgs = rec {
|
|||||||
emacs = if (getConfig ["git" "useEmacs"] true) then emacs else null;
|
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 {
|
gkrellm = import ../applications/misc/gkrellm {
|
||||||
inherit fetchurl stdenv gettext pkgconfig;
|
inherit fetchurl stdenv gettext pkgconfig;
|
||||||
inherit (gtkLibs) glib gtk;
|
inherit (gtkLibs) glib gtk;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user