05f95c69c5
svn path=/nixpkgs/trunk/; revision=29016
32 lines
836 B
Nix
32 lines
836 B
Nix
{stdenv, fetchurl, xz, pygtk, python, intltool, scrollkeeper, makeWrapper }:
|
|
|
|
let
|
|
minor = "1.5";
|
|
version = "${minor}.2";
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "meld-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://ftp.gnome.org/pub/gnome/sources/meld/${minor}/meld-${version}.tar.xz";
|
|
sha256 = "05rbkqflbqnh2c4682d2fmidhwz2bvlggrhp1p7xbi3z8ci87pdx";
|
|
};
|
|
|
|
buildInputs = [ pygtk python intltool scrollkeeper makeWrapper xz ];
|
|
|
|
patchPhase = ''
|
|
sed -e s,/usr/local,$out, -i INSTALL
|
|
sed -e 's,#!.*,#!${python}/bin/python,' -i bin/meld
|
|
'';
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/meld --prefix PYTHONPATH : $PYTHONPATH:${pygtk}/lib/${python.libPrefix}/site-packages/gtk-2.0
|
|
'';
|
|
|
|
meta = {
|
|
description = "Visual diff and merge tool";
|
|
homepage = http://meld.sourceforge.net;
|
|
license = "GPLv2+";
|
|
};
|
|
}
|