diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2017-03-18 12:19:10 +0100 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2017-03-18 12:41:09 +0100 |
commit | 266fb8845a815785a18488401fefe21e31ca55f3 (patch) | |
tree | bdb67b559355e9a0018810caeb721b855cff8b63 /pkgs/development/tools/misc/xxdiff | |
parent | 54aff5c3a72578c99ba767ecc6ff35ecdaa0e0e2 (diff) |
xxdiff-tip: init at 4.0.1.20170111
Supports Qt5
Diffstat (limited to 'pkgs/development/tools/misc/xxdiff')
-rw-r--r-- | pkgs/development/tools/misc/xxdiff/tip.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/xxdiff/tip.nix b/pkgs/development/tools/misc/xxdiff/tip.nix new file mode 100644 index 0000000000000..b613508c5c059 --- /dev/null +++ b/pkgs/development/tools/misc/xxdiff/tip.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromBitbucket, qt5, flex, bison, docutils }: + +stdenv.mkDerivation rec { + name = "xxdiff-4.0.1.20170101"; + + src = fetchFromBitbucket { + owner = "blais"; + repo = "xxdiff"; + rev = "1cf6b23ad30a845daba28a3409c65f93aec7f5e8"; + sha256 = "0rq7grpndj85i7qzlj93jpzpfzk7bwsi55033fc63hb55rbdzz6z"; + }; + + nativeBuildInputs = [ flex bison qt5.qtbase docutils ]; + + buildInputs = [ qt5.qtbase ]; + + preConfigure = '' + ln -s ${qt5.qtbase.dev}/mkspecs/* ../__nix_qt*__/mkspecs + ln -s ${qt5.qtbase.dev}/bin/* ../__nix_qt*__/bin || true + ''; + + NIX_CFLAGS_COMPILE="-I${qt5.qtbase.dev}/include/QtCore -I${qt5.qtbase.dev}/include/QtGui -I${qt5.qtbase.dev}/include/QtWidgets"; + + configurePhase = "${preConfigure} cd src; make -f Makefile.bootstrap"; + + installPhase = "mkdir -pv $out/bin; cp -v ../bin/xxdiff $out/bin"; + + + meta = with stdenv.lib; { + homepage = http://furius.ca/xxdiff/; + description = "Graphical file and directories comparator and merge tool"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ pSub raskin ]; + }; +} |