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