2007-06-24 15:34:44 +00:00
|
|
|
{stdenv, fetchurl}:
|
2014-04-07 21:13:24 +00:00
|
|
|
|
|
|
|
let
|
2014-09-05 14:14:36 +00:00
|
|
|
version = "5.1.7";
|
2014-04-07 21:13:24 +00:00
|
|
|
in
|
2007-06-24 15:34:44 +00:00
|
|
|
stdenv.mkDerivation {
|
2014-04-07 21:13:24 +00:00
|
|
|
name = "unrar-${version}";
|
2007-06-24 15:34:44 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-04-07 21:13:24 +00:00
|
|
|
url = "http://www.rarlab.com/rar/unrarsrc-${version}.tar.gz";
|
2014-09-05 14:14:36 +00:00
|
|
|
sha256 = "13ida8vcamiagl40d9yfjma9k6givxczhx278f1p7bv9wgb8gfmc";
|
2007-06-24 15:34:44 +00:00
|
|
|
};
|
|
|
|
|
2010-01-07 22:42:25 +00:00
|
|
|
installPhase = ''
|
2014-09-05 14:14:36 +00:00
|
|
|
installBin unrar
|
|
|
|
|
|
|
|
mkdir -p $out/share/doc/unrar
|
|
|
|
cp acknow.txt license.txt \
|
|
|
|
$out/share/doc/unrar
|
2010-01-07 22:42:25 +00:00
|
|
|
'';
|
2007-06-24 15:34:44 +00:00
|
|
|
|
2014-09-05 14:14:36 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-04-07 21:13:24 +00:00
|
|
|
description = "Utility for RAR archives";
|
2014-09-05 14:14:36 +00:00
|
|
|
homepage = http://www.rarlab.com/;
|
2014-09-06 10:53:45 +00:00
|
|
|
license = licenses.unfreeRedistributable;
|
2014-09-05 14:14:36 +00:00
|
|
|
maintainers = [ maintainers.emery ];
|
|
|
|
platforms = platforms.all;
|
2014-04-07 21:13:24 +00:00
|
|
|
};
|
2007-06-24 15:34:44 +00:00
|
|
|
}
|