2012-01-18 20:53:01 +00:00
|
|
|
{stdenv, fetchurl, pygtk, python, intltool, scrollkeeper, makeWrapper }:
|
2010-04-06 20:39:29 +01:00
|
|
|
|
2011-01-20 22:07:49 +00:00
|
|
|
let
|
2014-08-16 17:58:51 +01:00
|
|
|
minor = "1.8";
|
|
|
|
version = "${minor}.6";
|
2011-01-20 22:07:49 +00:00
|
|
|
in
|
|
|
|
|
2010-04-06 20:39:29 +01:00
|
|
|
stdenv.mkDerivation {
|
2011-01-20 22:07:49 +00:00
|
|
|
name = "meld-${version}";
|
2010-04-06 20:39:29 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-14 03:23:06 +01:00
|
|
|
url = "mirror://gnome/sources/meld/${minor}/meld-${version}.tar.xz";
|
2014-08-16 17:58:51 +01:00
|
|
|
sha256 = "19g86rksrs77hd58zhs3zwbjmmhqc98v2ly8451avwsbiwmni5mg";
|
2010-04-06 20:39:29 +01:00
|
|
|
};
|
|
|
|
|
2012-01-18 20:53:01 +00:00
|
|
|
buildInputs = [ pygtk python intltool scrollkeeper makeWrapper ];
|
2010-04-06 20:39:29 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e s,/usr/local,$out, -i INSTALL
|
2011-01-20 22:07:49 +00:00
|
|
|
sed -e 's,#!.*,#!${python}/bin/python,' -i bin/meld
|
2010-04-06 20:39:29 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/meld --prefix PYTHONPATH : $PYTHONPATH:${pygtk}/lib/${python.libPrefix}/site-packages/gtk-2.0
|
|
|
|
'';
|
|
|
|
|
2013-09-02 20:57:08 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-04-06 20:39:29 +01:00
|
|
|
description = "Visual diff and merge tool";
|
|
|
|
homepage = http://meld.sourceforge.net;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2014-09-09 14:21:04 +01:00
|
|
|
platforms = platforms.linux ++ stdenv.lib.platforms.darwin;
|
2010-04-06 20:39:29 +01:00
|
|
|
};
|
|
|
|
}
|