about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-02-09 20:44:26 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-02-09 20:44:26 +0000
commit18cc7f4b378b9938de574ef04b2567510eecb66e (patch)
treede3101bd1fa1bdebb21728b84ad0f20ced899aa4
parent921b7d3c6948fca1e758b99ea186a386685358ea (diff)
Adding comical-0.8
svn path=/nixpkgs/trunk/; revision=14016
-rw-r--r--pkgs/applications/graphics/comical/default.nix23
-rw-r--r--pkgs/top-level/all-packages.nix5
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/comical/default.nix b/pkgs/applications/graphics/comical/default.nix
new file mode 100644
index 0000000000000..db6f574682567
--- /dev/null
+++ b/pkgs/applications/graphics/comical/default.nix
@@ -0,0 +1,23 @@
+{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+";
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f675ac2cda45d..f549486f20b06 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -7240,6 +7240,11 @@ let
     python = pythonFull;
   };
 
+  comical = import ../applications/graphics/comical {
+    inherit stdenv fetchurl utillinux zlib;
+    inherit wxGTK;
+  };
+
   cua = import ../applications/editors/emacs-modes/cua {
     inherit fetchurl stdenv;
   };