2007-06-24 17:34:44 +02:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
stdenv.mkDerivation {
|
2007-06-26 14:13:17 +02:00
|
|
|
name = "unrar-3.7.6";
|
2007-06-24 17:34:44 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.rarlab.com/rar/unrarsrc-3.7.6.tar.gz;
|
2007-09-11 12:15:07 +02:00
|
|
|
sha256 = "0inzy0jlwqm18i6lq17aq4n2baqqlbjyr6incw4s9cxrvmjq51ls";
|
2007-06-24 17:34:44 +02:00
|
|
|
};
|
|
|
|
|
2010-01-07 23:42:25 +01:00
|
|
|
buildPhase = "make -f makefile.unix unrar lib CXXFLAGS=\"-fPIC -O2\"";
|
2007-06-24 17:34:44 +02:00
|
|
|
|
2010-01-07 23:42:25 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/lib
|
|
|
|
cp unrar $out/bin
|
|
|
|
cp libunrar.so $out/lib
|
|
|
|
'';
|
2007-06-24 17:34:44 +02:00
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
}
|