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