mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
d4d7931a62
svn path=/nixpkgs/branches/stdenv-updates/; revision=31678
33 lines
829 B
Nix
33 lines
829 B
Nix
{stdenv, fetchurl, 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 ];
|
|
|
|
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+";
|
|
};
|
|
}
|