11{
22 lib ,
3- mkDerivation ,
4- fetchFromBitbucket ,
3+ stdenv ,
4+ fetchFromGitHub ,
55 docutils ,
66 bison ,
77 flex ,
8- qmake ,
9- qtbase ,
8+ libsForQt5 ,
109} :
1110
12- mkDerivation rec {
11+ stdenv . mkDerivation ( finalAttrs : {
1312 pname = "xxdiff" ;
14- version = "5.0b1 " ;
13+ version = "5.1-unstable-2025-03-21 " ;
1514
16- src = fetchFromBitbucket {
15+ src = fetchFromGitHub {
1716 owner = "blais" ;
18- repo = pname ;
19- rev = "5e5f885dfc43559549a81c59e9e8c9525306356a " ;
20- sha256 = "0gbvxrkwkbvag3298j89smszghpr8ilxxfb0cvsknfqdf15b296w " ;
17+ repo = "xxdiff" ;
18+ rev = "a5593c1c675fb79d0ec2b6e353abba1fb0179aa7 " ;
19+ hash = "sha256-nRXvqhO128XsAFy4KrsrSYKpzWnciXGJV6QkuqRa07w= " ;
2120 } ;
2221
2322 nativeBuildInputs = [
2423 bison
2524 docutils
2625 flex
27- qmake
26+ libsForQt5 . qmake
27+ libsForQt5 . wrapQtAppsHook
2828 ] ;
2929
30- buildInputs = [ qtbase ] ;
30+ buildInputs = [ libsForQt5 . qtbase ] ;
3131
3232 dontUseQmakeConfigure = true ;
3333
3434 # c++11 and above is needed for building with Qt 5.9+
3535 env . NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ] ;
3636
37- sourceRoot = "${ src . name } /src" ;
37+ sourceRoot = "${ finalAttrs . src . name } /src" ;
3838
3939 postPatch = ''
40- substituteInPlace xxdiff.pro --replace ../bin ./bin
40+ substituteInPlace xxdiff.pro \
41+ --replace-fail "../bin" "./bin"
4142 '' ;
4243
4344 preConfigure = ''
@@ -47,21 +48,21 @@ mkDerivation rec {
4748 installPhase = ''
4849 runHook preInstall
4950
50- install -Dm555 -t $out/bin ./bin/xxdiff
51- install -Dm444 -t $out/share/doc/${ pname } ${ src } /README
51+ install -Dm555 -t $out/bin ./bin/xxdiff
52+ install -Dm444 -t $out/share/doc/xxdiff ${ finalAttrs . src } /README.rst
5253
5354 runHook postInstall
5455 '' ;
5556
56- meta = with lib ; {
57+ meta = {
5758 description = "Graphical file and directories comparator and merge tool" ;
5859 mainProgram = "xxdiff" ;
5960 homepage = "http://furius.ca/xxdiff/" ;
60- license = licenses . gpl2 ;
61- maintainers = with maintainers ; [
61+ license = lib . licenses . gpl2Plus ;
62+ maintainers = with lib . maintainers ; [
6263 pSub
6364 raskin
6465 ] ;
65- platforms = platforms . linux ;
66+ platforms = lib . platforms . linux ;
6667 } ;
67- }
68+ } )
0 commit comments