3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/graphics/comical/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
937 B
Nix
Raw Normal View History

2022-10-17 09:23:29 +01:00
{ lib, stdenv, fetchurl, wxGTK32, util-linux, zlib, Cocoa }:
stdenv.mkDerivation rec {
pname = "comical";
version = "0.8";
src = fetchurl {
url = "mirror://sourceforge/comical/comical-${version}.tar.gz";
sha256 = "0b6527cc06b25a937041f1eb248d0fd881cf055362097036b939817f785ab85e";
};
2022-10-17 09:23:29 +01:00
patches = [ ./wxgtk-3.2.patch ];
2022-10-17 09:23:29 +01:00
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";
meta = {
description = "Viewer of CBR and CBZ files, often used to store scanned comics";
homepage = "http://comical.sourceforge.net/";
2021-01-15 13:21:58 +00:00
license = lib.licenses.gpl2Plus;
2022-10-17 09:23:29 +01:00
maintainers = with lib.maintainers; [ viric wegank ];
platforms = with lib.platforms; unix;
mainProgram = "comical";
};
}