nixpkgs/pkgs/applications/version-management/meld/default.nix

52 lines
1.5 KiB
Nix
Raw Normal View History

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