coolreader: migrate to by-name, modernize derivation (#506308)

This commit is contained in:
Weijia Wang
2026-04-12 14:35:49 +00:00
committed by GitHub
3 changed files with 5 additions and 8 deletions
@@ -3,9 +3,8 @@
fetchFromGitHub,
cmake,
pkg-config,
wrapQtAppsHook,
lib,
qttools,
qt5,
fribidi,
libunibreak,
zstd,
@@ -18,8 +17,8 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "buggins";
repo = "coolreader";
rev = "cr${finalAttrs.version}";
sha256 = "sha256-RgVEOaNBaEuPBC75B8PdCkbqMvEzNmnEYmiI1ny/WFQ=";
tag = "cr${finalAttrs.version}";
hash = "sha256-RgVEOaNBaEuPBC75B8PdCkbqMvEzNmnEYmiI1ny/WFQ=";
};
patches = [ ./cmake_policy_version_3_5.patch ];
@@ -27,11 +26,11 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
qt5.wrapQtAppsHook
];
buildInputs = [
qttools
qt5.qttools
fribidi
libunibreak
zstd
-2
View File
@@ -1493,8 +1493,6 @@ with pkgs;
coconut = with python312Packages; toPythonApplication coconut;
coolreader = libsForQt5.callPackage ../applications/misc/coolreader { };
corsair = with python3Packages; toPythonApplication corsair-scan;
inherit (cue) writeCueValidator;