2007-06-24 17:34:44 +02:00
|
|
|
{stdenv, fetchurl}:
|
2014-04-07 23:13:24 +02:00
|
|
|
|
|
|
|
let
|
2014-05-22 12:53:51 +02:00
|
|
|
version = "5.1.5";
|
2014-04-07 23:13:24 +02:00
|
|
|
in
|
2007-06-24 17:34:44 +02:00
|
|
|
stdenv.mkDerivation {
|
2014-04-07 23:13:24 +02:00
|
|
|
name = "unrar-${version}";
|
2007-06-24 17:34:44 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-04-07 23:13:24 +02:00
|
|
|
url = "http://www.rarlab.com/rar/unrarsrc-${version}.tar.gz";
|
2014-05-22 12:53:51 +02:00
|
|
|
sha256 = "1jrla255911rbl953br2xbgvyw15kpi11r4lpqm3jlw553ccw912";
|
2007-06-24 17:34:44 +02:00
|
|
|
};
|
|
|
|
|
2014-04-07 23:13:24 +02:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i \
|
|
|
|
-e "/CXX=/d" \
|
|
|
|
-e "/CXXFLAGS=/d" \
|
|
|
|
makefile
|
2010-01-08 21:04:23 +01:00
|
|
|
'';
|
2007-06-24 17:34:44 +02:00
|
|
|
|
2010-01-07 23:42:25 +01:00
|
|
|
installPhase = ''
|
2014-04-07 23:13:24 +02:00
|
|
|
mkdir -p $out/bin
|
2010-01-07 23:42:25 +01:00
|
|
|
cp unrar $out/bin
|
|
|
|
'';
|
2007-06-24 17:34:44 +02:00
|
|
|
|
2014-04-07 23:13:24 +02:00
|
|
|
meta = {
|
|
|
|
description = "Utility for RAR archives";
|
|
|
|
license = "freeware";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.emery ];
|
2014-04-20 15:29:05 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; # arbitrary
|
2014-04-07 23:13:24 +02:00
|
|
|
};
|
2007-06-24 17:34:44 +02:00
|
|
|
}
|