Adding 'meld'

svn path=/nixpkgs/trunk/; revision=20963
This commit is contained in:
Lluís Batlle i Rossell 2010-04-06 19:39:29 +00:00
parent 788e40bd5a
commit 3c2c4ac87a
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{stdenv, fetchurl, pygtk, python, intltool, scrollkeeper, makeWrapper }:
stdenv.mkDerivation {
name = "meld-1.3.1";
src = fetchurl {
url = http://ftp.gnome.org/pub/gnome/sources/meld/1.3/meld-1.3.1.tar.bz2;
sha256 = "0iqnj3qb9l7z12akgmf64fr2xqirsqxflvj60xqcqr5vd5c763nn";
};
buildInputs = [ pygtk python intltool scrollkeeper makeWrapper ];
patchPhase = ''
sed -e s,/usr/local,$out, -i INSTALL
sed -e 's,#!.*,#!${python}/bin/python,' -i meld
'';
postInstall = ''
wrapProgram $out/bin/meld --prefix PYTHONPATH : $PYTHONPATH:${pygtk}/lib/${python.libPrefix}/site-packages/gtk-2.0
'';
meta = {
description = "Visual diff and merge tool";
homepage = http://meld.sourceforge.net;
license = "GPLv2+";
};
}

View File

@ -7686,6 +7686,12 @@ let
qt = qt4;
};
meld = import ../applications/version-management/meld {
inherit fetchurl stdenv python intltool makeWrapper;
inherit (gnome) scrollkeeper;
pygtk = pyGtkGlade;
};
mercurial = import ../applications/version-management/mercurial {
inherit fetchurl stdenv makeWrapper getConfig tk;
guiSupport = getConfig ["mercurial" "guiSupport"] false; # for hgk (gitk gui for hg)