Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, wxGTK32, util-linux, zlib, Cocoa }: 2 3stdenv.mkDerivation rec { 4 pname = "comical"; 5 version = "0.8"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/comical/comical-${version}.tar.gz"; 9 sha256 = "0b6527cc06b25a937041f1eb248d0fd881cf055362097036b939817f785ab85e"; 10 }; 11 12 patches = [ ./wxgtk-3.2.patch ]; 13 14 buildInputs = [ 15 wxGTK32 16 util-linux 17 zlib 18 ] ++ lib.optionals stdenv.isDarwin [ 19 Cocoa 20 ]; 21 22 makeFlags = [ 23 "prefix=${placeholder "out"}" 24 "CC=${stdenv.cc.targetPrefix}cc" 25 "CXX=${stdenv.cc.targetPrefix}c++" 26 ]; 27 28 preInstall = "mkdir -pv $out/bin"; 29 30 meta = { 31 description = "Viewer of CBR and CBZ files, often used to store scanned comics"; 32 homepage = "https://comical.sourceforge.net/"; 33 license = lib.licenses.gpl2Plus; 34 maintainers = with lib.maintainers; [ viric wegank ]; 35 platforms = with lib.platforms; unix; 36 mainProgram = "comical"; 37 }; 38}