2013-05-22 09:44:32 +01:00
|
|
|
{ stdenv, fetchurl, python, pygtk, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-09-04 17:49:07 +01:00
|
|
|
version = "0.4.8";
|
2013-05-22 09:44:32 +01:00
|
|
|
name = "diffuse-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/diffuse/diffuse/${version}/${name}.tar.bz2";
|
2014-09-04 17:49:07 +01:00
|
|
|
sha256 = "0ayz8bywmk1z3zicb0a7hbxliqpc7xym60s0mawzqllkpadvgly1";
|
2013-05-22 09:44:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ python pygtk makeWrapper ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
python ./install.py --prefix="$out" --sysconfdir="$out/etc" --pythonbin="${python}/bin/python"
|
|
|
|
wrapProgram "$out/bin/diffuse" --prefix PYTHONPATH : $PYTHONPATH:${pygtk}/lib/${python.libPrefix}/site-packages/gtk-2.0
|
|
|
|
'';
|
|
|
|
|
|
|
|
# no-op, everything is done in buildPhase
|
|
|
|
installPhase = "true";
|
|
|
|
|
|
|
|
# NOTE: diffuse installs a .desktop file itself
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Graphical diff and merge tool";
|
|
|
|
homepage = http://diffuse.sourceforge.net/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|