diff options
Diffstat (limited to 'pkgs/applications/graphics/comical/default.nix')
-rw-r--r-- | pkgs/applications/graphics/comical/default.nix | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/pkgs/applications/graphics/comical/default.nix b/pkgs/applications/graphics/comical/default.nix index 36da9d26410ed..095905ff06d8a 100644 --- a/pkgs/applications/graphics/comical/default.nix +++ b/pkgs/applications/graphics/comical/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, wxGTK, util-linux, zlib }: +{ lib, stdenv, fetchurl, wxGTK32, util-linux, zlib, Cocoa }: stdenv.mkDerivation rec { pname = "comical"; @@ -9,10 +9,21 @@ stdenv.mkDerivation rec { sha256 = "0b6527cc06b25a937041f1eb248d0fd881cf055362097036b939817f785ab85e"; }; - buildInputs = [ wxGTK util-linux zlib ]; - makeFlags = [ "prefix=${placeholder "out"}" ]; + patches = [ ./wxgtk-3.2.patch ]; - patches = [ ./wxgtk-2.8.patch ]; + buildInputs = [ + wxGTK32 + util-linux + zlib + ] ++ lib.optionals stdenv.isDarwin [ + Cocoa + ]; + + makeFlags = [ + "prefix=${placeholder "out"}" + "CC=${stdenv.cc.targetPrefix}cc" + "CXX=${stdenv.cc.targetPrefix}c++" + ]; preInstall = "mkdir -pv $out/bin"; @@ -20,7 +31,8 @@ stdenv.mkDerivation rec { description = "Viewer of CBR and CBZ files, often used to store scanned comics"; homepage = "http://comical.sourceforge.net/"; license = lib.licenses.gpl2Plus; - maintainers = with lib.maintainers; [ viric ]; - platforms = with lib.platforms; linux; + maintainers = with lib.maintainers; [ viric wegank ]; + platforms = with lib.platforms; unix; + mainProgram = "comical"; }; } |