2012-01-18 21:53:01 +01:00
|
|
|
{stdenv, fetchurl, pygtk, python, intltool, scrollkeeper, makeWrapper }:
|
2010-04-06 21:39:29 +02:00
|
|
|
|
2011-01-20 23:07:49 +01:00
|
|
|
let
|
2013-04-08 12:14:26 +02:00
|
|
|
minor = "1.6";
|
|
|
|
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 {
|
2013-07-14 04:23:06 +02:00
|
|
|
url = "mirror://gnome/sources/meld/${minor}/meld-${version}.tar.xz";
|
2013-04-08 12:14:26 +02:00
|
|
|
sha256 = "00rsff0yl5qwzh0igkdns6ry2xsbxad70avpqpkbd2bldi94v76y";
|
2010-04-06 21:39:29 +02:00
|
|
|
};
|
|
|
|
|
2012-01-18 21:53:01 +01:00
|
|
|
buildInputs = [ pygtk python intltool scrollkeeper makeWrapper ];
|
2010-04-06 21:39:29 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2013-09-02 21:57:08 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-04-06 21:39:29 +02:00
|
|
|
description = "Visual diff and merge tool";
|
|
|
|
homepage = http://meld.sourceforge.net;
|
|
|
|
license = "GPLv2+";
|
2013-09-02 21:57:08 +02:00
|
|
|
platforms = platforms.linux;
|
2010-04-06 21:39:29 +02:00
|
|
|
};
|
|
|
|
}
|