1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/tools/archivers/unrar/default.nix

36 lines
731 B
Nix
Raw Normal View History

{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
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";
2016-01-16 07:29:32 +00:00
sha256 = "0nsxwg1zp3s34wyjznwmy2cc5929yk7m5smq11cqdb6hmql3fngz";
};
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/;
2016-01-02 11:30:28 +00:00
license = licenses.unfreeRedistributable;
maintainers = [ maintainers.ehmry ];
platforms = platforms.all;
2014-04-07 22:13:24 +01:00
};
}