nixpkgs/pkgs/applications/graphics/comical/default.nix

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

53 lines
975 B
Nix
Raw Normal View History

2023-06-14 14:51:26 +00:00
{ 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";
2023-06-14 14:51:26 +00:00
hash = "sha256-C2UnzAayWpNwQfHrJI0P2IHPBVNiCXA2uTmBf3hauF4=";
};
2023-06-14 14:51:26 +00:00
patches = [
./wxgtk-3.2.patch
];
nativeBuildInputs = [
hexdump
];
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++"
];
2023-06-14 14:51:26 +00:00
preInstall = ''
mkdir -p $out/bin
'';
meta = {
description = "Viewer of CBR and CBZ files, often used to store scanned comics";
homepage = "https://comical.sourceforge.net/";
2021-01-15 13:21:58 +00:00
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ wegank ];
2022-10-17 08:23:29 +00:00
platforms = with lib.platforms; unix;
mainProgram = "comical";
};
}