nixpkgs/pkgs/tools/archivers/unrar/default.nix

30 lines
643 B
Nix
Raw Normal View History

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