mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
34 lines
1 KiB
Nix
34 lines
1 KiB
Nix
{ stdenv, fetchurl, python27Packages, makeWrapper }:
|
|
|
|
let
|
|
inherit (python27Packages) pygtk python;
|
|
in stdenv.mkDerivation rec {
|
|
version = "0.4.8";
|
|
pname = "diffuse";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/diffuse/diffuse/${version}/${pname}-${version}.tar.bz2";
|
|
sha256 = "0ayz8bywmk1z3zicb0a7hbxliqpc7xym60s0mawzqllkpadvgly1";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|