summary refs log tree commit diff
path: root/pkgs/tools/archivers
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-01-08 20:04:23 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-01-08 20:04:23 +0000
commit863ccef2c4df677e975bf5bdeb61fb6b2c6e7c76 (patch)
tree526d18b514a20aea9ba8b30103f71dffe4769445 /pkgs/tools/archivers
parentb80132502d6006b6b2cf6a4d7b38695bd6b0e48c (diff)
downloadnixpkgs-863ccef2c4df677e975bf5bdeb61fb6b2c6e7c76.tar
nixpkgs-863ccef2c4df677e975bf5bdeb61fb6b2c6e7c76.tar.gz
nixpkgs-863ccef2c4df677e975bf5bdeb61fb6b2c6e7c76.tar.bz2
nixpkgs-863ccef2c4df677e975bf5bdeb61fb6b2c6e7c76.tar.lz
nixpkgs-863ccef2c4df677e975bf5bdeb61fb6b2c6e7c76.tar.xz
nixpkgs-863ccef2c4df677e975bf5bdeb61fb6b2c6e7c76.tar.zst
nixpkgs-863ccef2c4df677e975bf5bdeb61fb6b2c6e7c76.zip
Updating unrar, and making its libunrar library work (needs -DSILENT, for example)
svn path=/nixpkgs/trunk/; revision=19309
Diffstat (limited to 'pkgs/tools/archivers')
-rw-r--r--pkgs/tools/archivers/unrar/default.nix17
1 files changed, 13 insertions, 4 deletions
diff --git a/pkgs/tools/archivers/unrar/default.nix b/pkgs/tools/archivers/unrar/default.nix
index 6ed74151297..1667156adab 100644
--- a/pkgs/tools/archivers/unrar/default.nix
+++ b/pkgs/tools/archivers/unrar/default.nix
@@ -1,13 +1,22 @@
 {stdenv, fetchurl}:
 stdenv.mkDerivation {
-  name = "unrar-3.7.6";
+  name = "unrar-3.9.7";
 
   src = fetchurl {
-    url = http://www.rarlab.com/rar/unrarsrc-3.7.6.tar.gz;
-    sha256 = "0inzy0jlwqm18i6lq17aq4n2baqqlbjyr6incw4s9cxrvmjq51ls";
+    url = http://www.rarlab.com/rar/unrarsrc-3.9.7.tar.gz;
+    sha256 = "101w7fgfr5biyic8gj0km5aqi4xj8dikh4aa0rx0qvg8bjp19wb4";
   };
 
-  buildPhase = "make -f makefile.unix unrar lib CXXFLAGS=\"-fPIC -O2\"";
+  # Add a missing objects to the library
+  #patchPhase = ''
+  #  sed -i 's/^\(LIB_OBJ=.*\)/\1 recvol.o rs.o/' makefile.unix
+  #'';
+
+  buildPhase = ''
+    make -f makefile.unix unrar
+    rm *.o
+    make -f makefile.unix lib CXXFLAGS="-fPIC -O2 -DSILENT";
+  '';
 
   installPhase = ''
     mkdir -p $out/bin $out/lib