zeal: 0.6.1.20230320 -> 0.6.1.20230907

- Remove null defaults
- Use rec-less, overlay-style overridable recursive attributes (in effect since
https://github.com/NixOS/nixpkgs/pull/119942);
- Reorder lists
- Add myself to maintainers

authored by Anderson Torres and committed by Peter Hoeg 5a31db94 ac1367d4

+26 -18
+23 -17
pkgs/data/documentation/zeal/default.nix
··· 7 , qtbase 8 , qtimageformats 9 , qtwebengine 10 - , qtx11extras ? null # qt5 only 11 , libarchive 12 , libXdmcp 13 , libpthreadstubs ··· 17 18 let 19 isQt5 = lib.versions.major qtbase.version == "5"; 20 - 21 in 22 - stdenv.mkDerivation rec { 23 pname = "zeal"; 24 - version = "0.6.1.20230320"; 25 26 src = fetchFromGitHub { 27 owner = "zealdocs"; 28 repo = "zeal"; 29 - rev = "a617ae5e06b95cec99bae058650e55b98613916d"; 30 - hash = "sha256-WL2uqA0sZ5Q3lZIA9vkLVyfec/jBkfGcWb6XQ7AuM94="; 31 }; 32 33 # we only need this if we are using a version that hasn't been released. We ··· 36 # line. 37 postPatch = '' 38 sed -i CMakeLists.txt \ 39 - -e 's@^project.*@project(Zeal VERSION ${version})@' 40 '' + lib.optionalString (!isQt5) '' 41 substituteInPlace src/app/CMakeLists.txt \ 42 --replace "COMPONENTS Widgets" "COMPONENTS Widgets QmlIntegration" 43 ''; 44 45 - nativeBuildInputs = [ cmake extra-cmake-modules pkg-config wrapQtAppsHook ]; 46 47 buildInputs = [ 48 qtbase 49 qtimageformats 50 qtwebengine 51 - libarchive 52 - libXdmcp 53 - libpthreadstubs 54 xcbutilkeysyms 55 - ] ++ lib.optionals isQt5 [ qtx11extras ]; 56 57 - meta = with lib; { 58 description = "A simple offline API documentation browser"; 59 longDescription = '' 60 Zeal is a simple offline API documentation browser inspired by Dash (macOS 61 app), available for Linux and Windows. 62 ''; 63 homepage = "https://zealdocs.org/"; 64 - license = licenses.gpl3; 65 - maintainers = with maintainers; [ skeidel peterhoeg ]; 66 - platforms = platforms.linux; 67 }; 68 - }
··· 7 , qtbase 8 , qtimageformats 9 , qtwebengine 10 + , qtx11extras 11 , libarchive 12 , libXdmcp 13 , libpthreadstubs ··· 17 18 let 19 isQt5 = lib.versions.major qtbase.version == "5"; 20 in 21 + stdenv.mkDerivation (finalAttrs: { 22 pname = "zeal"; 23 + version = "0.6.1.20230907"; # unstable-date format not suitable for cmake 24 25 src = fetchFromGitHub { 26 owner = "zealdocs"; 27 repo = "zeal"; 28 + rev = "20249153077964d01c7c36b9f4042a40e8c8fbf1"; 29 + hash = "sha256-AyfpMq0R0ummTGvyUHOh/XBUeVfkFwo1VyyLSGoTN8w="; 30 }; 31 32 # we only need this if we are using a version that hasn't been released. We ··· 35 # line. 36 postPatch = '' 37 sed -i CMakeLists.txt \ 38 + -e 's@^project.*@project(Zeal VERSION ${finalAttrs.version})@' 39 '' + lib.optionalString (!isQt5) '' 40 substituteInPlace src/app/CMakeLists.txt \ 41 --replace "COMPONENTS Widgets" "COMPONENTS Widgets QmlIntegration" 42 ''; 43 44 + nativeBuildInputs = [ 45 + cmake 46 + extra-cmake-modules 47 + pkg-config 48 + wrapQtAppsHook 49 + ]; 50 51 buildInputs = [ 52 + libXdmcp 53 + libarchive 54 + libpthreadstubs 55 qtbase 56 qtimageformats 57 qtwebengine 58 xcbutilkeysyms 59 + ] 60 + ++ lib.optionals isQt5 [ qtx11extras ]; 61 62 + meta = { 63 description = "A simple offline API documentation browser"; 64 longDescription = '' 65 Zeal is a simple offline API documentation browser inspired by Dash (macOS 66 app), available for Linux and Windows. 67 ''; 68 homepage = "https://zealdocs.org/"; 69 + changelog = "https://github.com/zealdocs/zeal/releases"; 70 + license = lib.licenses.gpl3Plus; 71 + maintainers = with lib.maintainers; [ skeidel peterhoeg AndersonTorres ]; 72 + inherit (qtbase.meta) platforms; 73 }; 74 + })
+3 -1
pkgs/top-level/all-packages.nix
··· 30409 }; 30410 30411 zeal-qt5 = libsForQt5.callPackage ../data/documentation/zeal { }; 30412 - zeal-qt6 = qt6Packages.callPackage ../data/documentation/zeal { }; 30413 zeal = zeal-qt5; 30414 30415 zilla-slab = callPackage ../data/fonts/zilla-slab { }; 30416
··· 30409 }; 30410 30411 zeal-qt5 = libsForQt5.callPackage ../data/documentation/zeal { }; 30412 zeal = zeal-qt5; 30413 + zeal-qt6 = qt6Packages.callPackage ../data/documentation/zeal { 30414 + qtx11extras = null; # Because it does not exist in qt6 30415 + }; 30416 30417 zilla-slab = callPackage ../data/fonts/zilla-slab { }; 30418