2007-06-24 16:34:44 +01:00
|
|
|
{stdenv, fetchurl}:
|
2014-04-07 22:13:24 +01:00
|
|
|
|
|
|
|
let
|
2016-01-16 07:29:32 +00:00
|
|
|
version = "5.3.9";
|
2014-04-07 22:13:24 +01:00
|
|
|
in
|
2007-06-24 16:34:44 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-04-07 22:13:24 +01:00
|
|
|
name = "unrar-${version}";
|
2007-06-24 16:34:44 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-04-07 22:13:24 +01:00
|
|
|
url = "http://www.rarlab.com/rar/unrarsrc-${version}.tar.gz";
|
2016-01-16 07:29:32 +00:00
|
|
|
sha256 = "0nsxwg1zp3s34wyjznwmy2cc5929yk7m5smq11cqdb6hmql3fngz";
|
2007-06-24 16:34:44 +01:00
|
|
|
};
|
|
|
|
|
2014-12-17 18:11:30 +00:00
|
|
|
preBuild = ''
|
|
|
|
export buildFlags="CXX=$CXX"
|
|
|
|
'';
|
|
|
|
|
2010-01-07 22:42:25 +00:00
|
|
|
installPhase = ''
|
2014-09-05 15:14:36 +01: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 16:34:44 +01:00
|
|
|
|
2015-03-27 20:22:51 +00:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2014-09-05 15:14:36 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-04-07 22:13:24 +01:00
|
|
|
description = "Utility for RAR archives";
|
2014-09-05 15:14:36 +01:00
|
|
|
homepage = http://www.rarlab.com/;
|
2016-01-02 11:30:28 +00:00
|
|
|
license = licenses.unfreeRedistributable;
|
2015-12-05 21:41:25 +00:00
|
|
|
maintainers = [ maintainers.ehmry ];
|
2014-09-05 15:14:36 +01:00
|
|
|
platforms = platforms.all;
|
2014-04-07 22:13:24 +01:00
|
|
|
};
|
2007-06-24 16:34:44 +01:00
|
|
|
}
|