Files
nixpkgs/pkgs/applications/misc/coolreader/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
830 B
Nix

{
stdenv,
mkDerivation,
fetchFromGitHub,
cmake,
pkg-config,
lib,
qttools,
fribidi,
libunibreak,
}:
mkDerivation rec {
pname = "coolreader";
version = "3.2.57";
src = fetchFromGitHub {
owner = "buggins";
repo = "coolreader";
rev = "cr${version}";
sha256 = "sha256-ZfgaLCLvBU6xP7nx7YJTsJSpvpdQgLpSMWH+BsG8E1g=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
qttools
fribidi
libunibreak
];
meta = {
broken = stdenv.hostPlatform.isDarwin;
homepage = "https://github.com/buggins/coolreader";
description = "Cross platform open source e-book reader";
mainProgram = "cr3";
license = lib.licenses.gpl2Plus; # see https://github.com/buggins/coolreader/issues/80
maintainers = [ ];
platforms = lib.platforms.all;
};
}