2017-12-28 11:29:12 +00:00
|
|
|
{ stdenv, fetchurl, itstool, python3Packages, intltool, wrapGAppsHook
|
2016-08-14 12:52:23 +01:00
|
|
|
, libxml2, gobjectIntrospection, gtk3, gnome3, cairo, file
|
2015-01-25 07:59:05 +00:00
|
|
|
}:
|
2015-01-21 19:59:57 +00:00
|
|
|
|
2010-04-06 20:39:29 +01:00
|
|
|
|
2011-01-20 22:07:49 +00:00
|
|
|
let
|
2017-12-28 11:29:12 +00:00
|
|
|
minor = "3.18";
|
|
|
|
version = "${minor}.0";
|
|
|
|
inherit (python3Packages) python buildPythonApplication pycairo pygobject3;
|
2016-08-14 12:52:23 +01:00
|
|
|
in buildPythonApplication rec {
|
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";
|
2017-12-28 11:29:12 +00:00
|
|
|
sha256 = "0gi2jzgsrd5q2icyp6wphbn532ddg82nxhfxlffkniy7wnqmi0c4";
|
2010-04-06 20:39:29 +01:00
|
|
|
};
|
|
|
|
|
2015-01-25 07:59:05 +00:00
|
|
|
buildInputs = [
|
2016-08-14 12:52:23 +01:00
|
|
|
intltool wrapGAppsHook itstool libxml2
|
2018-02-25 02:23:58 +00:00
|
|
|
gnome3.gtksourceview gnome3.gsettings-desktop-schemas pycairo cairo
|
2016-07-30 08:46:18 +01:00
|
|
|
gnome3.defaultIconTheme gnome3.dconf file
|
2015-01-25 07:59:05 +00:00
|
|
|
];
|
2015-01-21 19:59:57 +00:00
|
|
|
propagatedBuildInputs = [ gobjectIntrospection pygobject3 gtk3 ];
|
2010-04-06 20:39:29 +01:00
|
|
|
|
2015-01-21 19:59:57 +00:00
|
|
|
installPhase = ''
|
2016-08-14 12:52:23 +01:00
|
|
|
mkdir -p "$out/lib/${python.libPrefix}/site-packages"
|
2015-01-21 19:59:57 +00:00
|
|
|
|
2016-08-14 12:52:23 +01:00
|
|
|
export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
|
2015-01-21 19:59:57 +00:00
|
|
|
|
2016-08-14 12:52:23 +01:00
|
|
|
${python}/bin/${python.executable} setup.py install \
|
|
|
|
--install-lib=$out/lib/${python.libPrefix}/site-packages \
|
2015-01-21 19:59:57 +00:00
|
|
|
--prefix="$out"
|
|
|
|
|
2015-03-01 11:51:36 +00:00
|
|
|
mkdir -p $out/share/gsettings-schemas/$name
|
|
|
|
mv $out/share/glib-2.0 $out/share/gsettings-schemas/$name/
|
|
|
|
'';
|
|
|
|
|
2015-01-21 19:59:57 +00:00
|
|
|
patchPhase = ''
|
2015-07-24 18:03:11 +01:00
|
|
|
patchShebangs bin/meld
|
2010-04-06 20:39:29 +01:00
|
|
|
'';
|
|
|
|
|
2015-01-21 19:59:57 +00:00
|
|
|
pythonPath = [ gtk3 ];
|
|
|
|
|
2017-12-28 11:29:12 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
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";
|
2015-07-24 18:03:11 +01:00
|
|
|
homepage = http://meldmerge.org/;
|
2015-01-21 19:59:57 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2014-09-09 14:21:04 +01:00
|
|
|
platforms = platforms.linux ++ stdenv.lib.platforms.darwin;
|
2016-06-25 18:03:13 +01:00
|
|
|
maintainers = [ maintainers.mimadrid ];
|
2010-04-06 20:39:29 +01:00
|
|
|
};
|
|
|
|
}
|