summary refs log tree commit diff
path: root/pkgs/development/tools/misc/xxdiff/default.nix
blob: 1d7e6b330423cfcd3dc9d4f02f8905de91a17efe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchurl, qt4, flex, bison, docutils }:

stdenv.mkDerivation rec {
  name = "xxdiff-4.0";

  src = fetchurl {
    url = "mirror://sourceforge/xxdiff/${name}.tar.bz2";
    sha256 = "0c0k8cwxyv5byw7va1n9iykvypv435j0isvys21rkj1bx121al4i";
  };

  nativeBuildInputs = [ flex bison qt4 docutils ];

  buildInputs = [ qt4 ];

  QMAKE = "qmake";

  configurePhase = "cd src; make -f Makefile.bootstrap";

  installPhase = "mkdir -pv $out/bin; cp -v ../bin/xxdiff $out/bin";

  meta = {
    homepage = "http://furius.ca/xxdiff/";
    description = "graphical file and directories comparator and merge tool";
    license = stdenv.lib.licenses.gpl2;

    platforms = stdenv.lib.platforms.linux;
    maintainers = [];
  };
}