2010-04-06 21:39:29 +02:00
|
|
|
{stdenv, fetchurl, pygtk, python, intltool, scrollkeeper, makeWrapper }:
|
|
|
|
|
2011-01-20 23:07:49 +01:00
|
|
|
let
|
|
|
|
minor = "1.5";
|
2011-04-20 16:04:54 +02:00
|
|
|
version = "${minor}.1";
|
2011-01-20 23:07:49 +01:00
|
|
|
in
|
|
|
|
|
2010-04-06 21:39:29 +02:00
|
|
|
stdenv.mkDerivation {
|
2011-01-20 23:07:49 +01:00
|
|
|
name = "meld-${version}";
|
2010-04-06 21:39:29 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-01-20 23:07:49 +01:00
|
|
|
url = "http://ftp.gnome.org/pub/gnome/sources/meld/${minor}/meld-${version}.tar.bz2";
|
2011-04-20 16:04:54 +02:00
|
|
|
sha256 = "0ykj3rb5hvcr4dmc52mz8q3iknrsh042v1x7yvffgs6yibakcac2";
|
2010-04-06 21:39:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pygtk python intltool scrollkeeper makeWrapper ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e s,/usr/local,$out, -i INSTALL
|
2011-01-20 23:07:49 +01:00
|
|
|
sed -e 's,#!.*,#!${python}/bin/python,' -i bin/meld
|
2010-04-06 21:39:29 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
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+";
|
|
|
|
};
|
|
|
|
}
|