Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 44 lines 832 B view raw
1{ 2 stdenv, 3 mkDerivation, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 lib, 8 qttools, 9 fribidi, 10 libunibreak, 11}: 12 13mkDerivation rec { 14 pname = "coolreader"; 15 version = "3.2.57"; 16 17 src = fetchFromGitHub { 18 owner = "buggins"; 19 repo = "coolreader"; 20 rev = "cr${version}"; 21 sha256 = "sha256-ZfgaLCLvBU6xP7nx7YJTsJSpvpdQgLpSMWH+BsG8E1g="; 22 }; 23 24 nativeBuildInputs = [ 25 cmake 26 pkg-config 27 ]; 28 29 buildInputs = [ 30 qttools 31 fribidi 32 libunibreak 33 ]; 34 35 meta = with lib; { 36 broken = stdenv.hostPlatform.isDarwin; 37 homepage = "https://github.com/buggins/coolreader"; 38 description = "Cross platform open source e-book reader"; 39 mainProgram = "cr3"; 40 license = licenses.gpl2Plus; # see https://github.com/buggins/coolreader/issues/80 41 maintainers = [ ]; 42 platforms = platforms.all; 43 }; 44}