2011-09-05 09:31:49 +01:00
|
|
|
{stdenv, fetchurl, xz, pygtk, python, intltool, scrollkeeper, makeWrapper }:
|
2010-04-06 20:39:29 +01:00
|
|
|
|
2011-01-20 22:07:49 +00:00
|
|
|
let
|
|
|
|
minor = "1.5";
|
2011-09-05 09:31:49 +01:00
|
|
|
version = "${minor}.2";
|
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 {
|
2011-09-05 09:31:49 +01:00
|
|
|
url = "http://ftp.gnome.org/pub/gnome/sources/meld/${minor}/meld-${version}.tar.xz";
|
|
|
|
sha256 = "05rbkqflbqnh2c4682d2fmidhwz2bvlggrhp1p7xbi3z8ci87pdx";
|
2010-04-06 20:39:29 +01:00
|
|
|
};
|
|
|
|
|
2011-09-05 09:31:49 +01:00
|
|
|
buildInputs = [ pygtk python intltool scrollkeeper makeWrapper xz ];
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Visual diff and merge tool";
|
|
|
|
homepage = http://meld.sourceforge.net;
|
|
|
|
license = "GPLv2+";
|
|
|
|
};
|
|
|
|
}
|