2007-06-24 15:34:44 +00:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
stdenv.mkDerivation {
|
2010-03-22 15:58:25 +00:00
|
|
|
name = "unrar-3.9.10";
|
2007-06-24 15:34:44 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-03-22 15:58:25 +00:00
|
|
|
url = http://www.rarlab.com/rar/unrarsrc-3.9.10.tar.gz;
|
|
|
|
sha256 = "0yi0i2j4srca8cag96ajc80m5xb5328ydzjab6y8h1bhypc2fiiv";
|
2007-06-24 15:34:44 +00:00
|
|
|
};
|
|
|
|
|
2010-01-08 20:04:23 +00:00
|
|
|
# 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";
|
|
|
|
'';
|
2007-06-24 15:34:44 +00:00
|
|
|
|
2010-01-07 22:42:25 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/lib
|
|
|
|
cp unrar $out/bin
|
|
|
|
cp libunrar.so $out/lib
|
|
|
|
'';
|
2007-06-24 15:34:44 +00:00
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
}
|