depot/third_party/nixpkgs/pkgs/applications/graphics/comical/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

52 lines
968 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.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; [ viric wegank ];
platforms = with lib.platforms; unix;
mainProgram = "comical";
};
}