Files
nixpkgs/pkgs/by-name/co/comical/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
982 B
Nix

{
lib,
stdenv,
fetchurl,
hexdump,
wxGTK32,
zlib,
}:
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
];
makeFlags = [
"prefix=${placeholder "out"}"
"CC=${stdenv.cc.targetPrefix}cc"
"CXX=${stdenv.cc.targetPrefix}c++"
];
env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
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";
};
}