mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
7986b718f3
See #11567.
52 lines
1.5 KiB
Nix
52 lines
1.5 KiB
Nix
{ stdenv, fetchurl, itstool, pythonPackages, intltool, wrapGAppsHook
|
|
, libxml2, gobjectIntrospection, gtk3, gnome3, cairo, file
|
|
}:
|
|
|
|
|
|
let
|
|
minor = "3.16";
|
|
version = "${minor}.2";
|
|
inherit (pythonPackages) python buildPythonApplication pycairo pygobject3;
|
|
in buildPythonApplication rec {
|
|
name = "meld-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/meld/${minor}/meld-${version}.tar.xz";
|
|
sha256 = "2dd3f58b95444bf721e0c912668c29cf8f47a402440b772ea12c4b9a0c94966f";
|
|
};
|
|
|
|
buildInputs = [
|
|
intltool wrapGAppsHook itstool libxml2
|
|
gnome3.gtksourceview gnome3.gsettings_desktop_schemas pycairo cairo
|
|
gnome3.defaultIconTheme gnome3.dconf file
|
|
];
|
|
propagatedBuildInputs = [ gobjectIntrospection pygobject3 gtk3 ];
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out/lib/${python.libPrefix}/site-packages"
|
|
|
|
export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
|
|
|
|
${python}/bin/${python.executable} setup.py install \
|
|
--install-lib=$out/lib/${python.libPrefix}/site-packages \
|
|
--prefix="$out"
|
|
|
|
mkdir -p $out/share/gsettings-schemas/$name
|
|
mv $out/share/glib-2.0 $out/share/gsettings-schemas/$name/
|
|
'';
|
|
|
|
patchPhase = ''
|
|
patchShebangs bin/meld
|
|
'';
|
|
|
|
pythonPath = [ gtk3 ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Visual diff and merge tool";
|
|
homepage = http://meldmerge.org/;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = platforms.linux ++ stdenv.lib.platforms.darwin;
|
|
maintainers = [ maintainers.mimadrid ];
|
|
};
|
|
}
|