2016-07-30 00:46:18 -07:00
|
|
|
{ stdenv, fetchurl, itstool, buildPythonApplication, python27, intltool, wrapGAppsHook
|
|
|
|
, libxml2, pygobject3, gobjectIntrospection, gtk3, gnome3, pycairo, cairo, file
|
2015-01-24 23:59:05 -08:00
|
|
|
}:
|
2015-01-21 11:59:57 -08:00
|
|
|
|
2010-04-06 12:39:29 -07:00
|
|
|
|
2011-01-20 14:07:49 -08:00
|
|
|
let
|
2016-06-13 12:21:16 -07:00
|
|
|
minor = "3.16";
|
2016-07-30 00:46:18 -07:00
|
|
|
version = "${minor}.2";
|
2011-01-20 14:07:49 -08:00
|
|
|
in
|
|
|
|
|
2016-02-19 04:12:11 -08:00
|
|
|
buildPythonApplication rec {
|
2011-01-20 14:07:49 -08:00
|
|
|
name = "meld-${version}";
|
2015-01-21 11:59:57 -08:00
|
|
|
namePrefix = "";
|
2010-04-06 12:39:29 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-13 19:23:06 -07:00
|
|
|
url = "mirror://gnome/sources/meld/${minor}/meld-${version}.tar.xz";
|
2016-07-30 00:46:18 -07:00
|
|
|
sha256 = "2dd3f58b95444bf721e0c912668c29cf8f47a402440b772ea12c4b9a0c94966f";
|
2010-04-06 12:39:29 -07:00
|
|
|
};
|
|
|
|
|
2015-01-24 23:59:05 -08:00
|
|
|
buildInputs = [
|
2016-07-30 00:46:18 -07:00
|
|
|
python27 intltool wrapGAppsHook itstool libxml2
|
2015-01-24 23:59:05 -08:00
|
|
|
gnome3.gtksourceview gnome3.gsettings_desktop_schemas pycairo cairo
|
2016-07-30 00:46:18 -07:00
|
|
|
gnome3.defaultIconTheme gnome3.dconf file
|
2015-01-24 23:59:05 -08:00
|
|
|
];
|
2015-01-21 11:59:57 -08:00
|
|
|
propagatedBuildInputs = [ gobjectIntrospection pygobject3 gtk3 ];
|
2010-04-06 12:39:29 -07:00
|
|
|
|
2015-01-21 11:59:57 -08:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/lib/${python27.libPrefix}/site-packages"
|
|
|
|
|
|
|
|
export PYTHONPATH="$out/lib/${python27.libPrefix}/site-packages:$PYTHONPATH"
|
|
|
|
|
|
|
|
${python27}/bin/${python27.executable} setup.py install \
|
|
|
|
--install-lib=$out/lib/${python27.libPrefix}/site-packages \
|
|
|
|
--prefix="$out"
|
|
|
|
|
2015-03-01 03:51:36 -08:00
|
|
|
mkdir -p $out/share/gsettings-schemas/$name
|
|
|
|
mv $out/share/glib-2.0 $out/share/gsettings-schemas/$name/
|
|
|
|
'';
|
|
|
|
|
2015-01-21 11:59:57 -08:00
|
|
|
patchPhase = ''
|
2015-07-24 10:03:11 -07:00
|
|
|
patchShebangs bin/meld
|
2010-04-06 12:39:29 -07:00
|
|
|
'';
|
|
|
|
|
2015-01-21 11:59:57 -08:00
|
|
|
pythonPath = [ gtk3 ];
|
|
|
|
|
2013-09-02 12:57:08 -07:00
|
|
|
meta = with stdenv.lib; {
|
2010-04-06 12:39:29 -07:00
|
|
|
description = "Visual diff and merge tool";
|
2015-07-24 10:03:11 -07:00
|
|
|
homepage = http://meldmerge.org/;
|
2015-01-21 11:59:57 -08:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2014-09-09 06:21:04 -07:00
|
|
|
platforms = platforms.linux ++ stdenv.lib.platforms.darwin;
|
2016-06-25 10:03:13 -07:00
|
|
|
maintainers = [ maintainers.mimadrid ];
|
2010-04-06 12:39:29 -07:00
|
|
|
};
|
|
|
|
}
|