about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/qshowdiff/default.nix
blob: e3970c0590277386d56a2add58446f1d6f127f1b (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
{stdenv, fetchurl, qt4, perl, pkgconfig }:

stdenv.mkDerivation rec {
  name = "qshowdiff-${version}";
  version = "1.2";

  src = fetchurl {
    url = "https://github.com/danfis/qshowdiff/archive/v${version}.tar.gz";
    sha256 = "027959xbzvi5c2w9y1x122sr5i26k9mvp43banz2wln6gd860n1a";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ qt4 perl ];

  configurePhase = ''
    mkdir -p $out/{bin,man/man1}
    makeFlags="PREFIX=$out CC=$CXX"
  '';

  meta = {
    homepage = http://qshowdiff.danfis.cz/;
    description = "Colourful diff viewer";
    license = stdenv.lib.licenses.gpl3Plus;
  };
}