diff options
Diffstat (limited to 'pkgs/applications/graphics/comical/default.nix')
-rw-r--r-- | pkgs/applications/graphics/comical/default.nix | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/applications/graphics/comical/default.nix b/pkgs/applications/graphics/comical/default.nix index 4cce7fde4e0..68910e67e25 100644 --- a/pkgs/applications/graphics/comical/default.nix +++ b/pkgs/applications/graphics/comical/default.nix @@ -1,19 +1,17 @@ {stdenv, fetchurl, wxGTK, utillinux, zlib }: -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "comical-0.8"; src = fetchurl { - url = mirror://sourceforge/comical/comical-0.8.tar.gz; + url = "mirror://sourceforge/comical/${name}.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 - ''; + preBuild="makeFlags=\"prefix=$out\""; - installPhase = "mkdir -p $out/bin ; make install"; + patches = [ ./wxgtk-2.8.patch ]; + + preInstall = "mkdir -pv $out/bin"; meta = { description = "Viewer of CBR and CBZ files, often used to store scanned comics"; |