2023-06-14 14:51:26 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, hexdump
|
|
|
|
, wxGTK32
|
|
|
|
, zlib
|
|
|
|
, Cocoa
|
|
|
|
}:
|
2009-02-09 20:44:26 +00:00
|
|
|
|
2011-09-19 05:16:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-07 20:29:51 +00:00
|
|
|
pname = "comical";
|
|
|
|
version = "0.8";
|
|
|
|
|
2009-02-09 20:44:26 +00:00
|
|
|
src = fetchurl {
|
2021-11-07 20:29:51 +00:00
|
|
|
url = "mirror://sourceforge/comical/comical-${version}.tar.gz";
|
2023-06-14 14:51:26 +00:00
|
|
|
hash = "sha256-C2UnzAayWpNwQfHrJI0P2IHPBVNiCXA2uTmBf3hauF4=";
|
2009-02-09 20:44:26 +00:00
|
|
|
};
|
2021-11-07 20:29:51 +00:00
|
|
|
|
2023-06-14 14:51:26 +00:00
|
|
|
patches = [
|
|
|
|
./wxgtk-3.2.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hexdump
|
|
|
|
];
|
2009-02-09 20:44:26 +00:00
|
|
|
|
2022-10-17 08:23:29 +00:00
|
|
|
buildInputs = [
|
|
|
|
wxGTK32
|
|
|
|
zlib
|
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
Cocoa
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"prefix=${placeholder "out"}"
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
"CXX=${stdenv.cc.targetPrefix}c++"
|
|
|
|
];
|
2011-09-19 05:16:32 +00:00
|
|
|
|
2023-06-14 14:51:26 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
2009-02-09 20:44:26 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Viewer of CBR and CBZ files, often used to store scanned comics";
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://comical.sourceforge.net/";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2024-07-26 17:58:06 +00:00
|
|
|
maintainers = with lib.maintainers; [ wegank ];
|
2022-10-17 08:23:29 +00:00
|
|
|
platforms = with lib.platforms; unix;
|
|
|
|
mainProgram = "comical";
|
2009-02-09 20:44:26 +00:00
|
|
|
};
|
|
|
|
}
|