1{stdenv, fetchurl, qt4, perl, pkgconfig }:
2
3stdenv.mkDerivation rec {
4 name = "qshowdiff-${version}";
5 version = "1.2";
6
7 src = fetchurl {
8 url = "https://github.com/danfis/qshowdiff/archive/v${version}.tar.gz";
9 sha256 = "027959xbzvi5c2w9y1x122sr5i26k9mvp43banz2wln6gd860n1a";
10 };
11
12 nativeBuildInputs = [ pkgconfig ];
13 buildInputs = [ qt4 perl ];
14
15 configurePhase = ''
16 mkdir -p $out/{bin,man/man1}
17 makeFlags="PREFIX=$out"
18 '';
19
20 meta = {
21 homepage = http://qshowdiff.danfis.cz/;
22 description = "Colourful diff viewer";
23 license = stdenv.lib.licenses.gpl3Plus;
24 };
25}