summary refs log tree commit diff
path: root/pkgs/applications/graphics/comical/default.nix
blob: 4cce7fde4e051dc75fffb06137a6448af851f691 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{stdenv, fetchurl, wxGTK, utillinux, zlib }:

stdenv.mkDerivation {
  name = "comical-0.8";
  src = fetchurl {
    url = mirror://sourceforge/comical/comical-0.8.tar.gz;
    sha256 = "0b6527cc06b25a937041f1eb248d0fd881cf055362097036b939817f785ab85e";
  };
  buildInputs = [ wxGTK utillinux zlib ];
  patchPhase = ''
    sed -i -e 's@"zlib\\.h"@<zlib.h>@' unzip/unzip.h
    sed -i -e 's@/usr/local@'$out@ \
      -e 's@-lminiunzip@-lminiunzip -lz@' Makefile
  '';

  installPhase = "mkdir -p $out/bin ; make install";

  meta = {
    description = "Viewer of CBR and CBZ files, often used to store scanned comics";
    homepage = http://comical.sourceforge.net/;
    license = "GPLv2+";
    maintainers = with stdenv.lib.maintainers; [viric];
    platforms = with stdenv.lib.platforms; linux;
  };
}