diff options
author | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2011-09-19 05:16:32 +0000 |
---|---|---|
committer | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2011-09-19 05:16:32 +0000 |
commit | fa506acf29f9a6accb72c9a51df220b8d0b08d37 (patch) | |
tree | 270240c671e549c6f6f5a2b69eecbbe3366a294b /pkgs/applications/graphics/comical/default.nix | |
parent | ef664e90a081d0ac66fe0f43007de53a60e3f812 (diff) |
comical: build with wxGTK28
svn path=/nixpkgs/trunk/; revision=29339
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 4cce7fde4e05..68910e67e25a 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"; |