7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
52 lines
975 B
Nix
52 lines
975 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, hexdump
|
|
, wxGTK32
|
|
, zlib
|
|
, Cocoa
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "comical";
|
|
version = "0.8";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/comical/comical-${version}.tar.gz";
|
|
hash = "sha256-C2UnzAayWpNwQfHrJI0P2IHPBVNiCXA2uTmBf3hauF4=";
|
|
};
|
|
|
|
patches = [
|
|
./wxgtk-3.2.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
hexdump
|
|
];
|
|
|
|
buildInputs = [
|
|
wxGTK32
|
|
zlib
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
Cocoa
|
|
];
|
|
|
|
makeFlags = [
|
|
"prefix=${placeholder "out"}"
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
"CXX=${stdenv.cc.targetPrefix}c++"
|
|
];
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
description = "Viewer of CBR and CBZ files, often used to store scanned comics";
|
|
homepage = "https://comical.sourceforge.net/";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ wegank ];
|
|
platforms = with lib.platforms; unix;
|
|
mainProgram = "comical";
|
|
};
|
|
}
|