at 16.09-beta 31 lines 969 B view raw
1{ stdenv, fetchurl, python, pygtk, makeWrapper }: 2 3stdenv.mkDerivation rec { 4 version = "0.4.8"; 5 name = "diffuse-${version}"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/project/diffuse/diffuse/${version}/${name}.tar.bz2"; 9 sha256 = "0ayz8bywmk1z3zicb0a7hbxliqpc7xym60s0mawzqllkpadvgly1"; 10 }; 11 12 buildInputs = [ python pygtk makeWrapper ]; 13 14 buildPhase = '' 15 python ./install.py --prefix="$out" --sysconfdir="$out/etc" --pythonbin="${python}/bin/python" 16 wrapProgram "$out/bin/diffuse" --prefix PYTHONPATH : $PYTHONPATH:${pygtk}/lib/${python.libPrefix}/site-packages/gtk-2.0 17 ''; 18 19 # no-op, everything is done in buildPhase 20 installPhase = "true"; 21 22 # NOTE: diffuse installs a .desktop file itself 23 24 meta = with stdenv.lib; { 25 description = "Graphical diff and merge tool"; 26 homepage = http://diffuse.sourceforge.net/; 27 license = licenses.gpl2Plus; 28 platforms = platforms.linux; 29 maintainers = [ maintainers.bjornfor ]; 30 }; 31}