3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/archivers/unrar/default.nix

36 lines
714 B
Nix
Raw Normal View History

{stdenv, fetchurl}:
2014-04-07 22:13:24 +01:00
let
2015-03-27 19:56:43 +00:00
version = "5.2.7";
2014-04-07 22:13:24 +01:00
in
stdenv.mkDerivation {
2014-04-07 22:13:24 +01:00
name = "unrar-${version}";
src = fetchurl {
2014-04-07 22:13:24 +01:00
url = "http://www.rarlab.com/rar/unrarsrc-${version}.tar.gz";
2015-03-27 19:56:43 +00:00
sha256 = "1b1ggrqn020pvvh2ia98alqxpl1q3x65cb6zzqwv91rpjiz7a57g";
};
preBuild = ''
export buildFlags="CXX=$CXX"
'';
installPhase = ''
installBin unrar
mkdir -p $out/share/doc/unrar
cp acknow.txt license.txt \
$out/share/doc/unrar
'';
2015-03-27 20:22:51 +00:00
setupHook = ./setup-hook.sh;
meta = with stdenv.lib; {
2014-04-07 22:13:24 +01:00
description = "Utility for RAR archives";
homepage = http://www.rarlab.com/;
2015-03-27 19:56:43 +00:00
license = licenses.gpl2;
maintainers = [ maintainers.emery ];
platforms = platforms.all;
2014-04-07 22:13:24 +01:00
};
}