unrar: update from 5.1.5 to 5.1.7, change license to 'unfree-redistributable'

This commit is contained in:
Emery Hemingway 2014-09-05 10:14:36 -04:00
parent 7f5bc10186
commit 1124d8a9b9
1 changed files with 12 additions and 15 deletions

View File

@ -1,32 +1,29 @@
{stdenv, fetchurl}: {stdenv, fetchurl}:
let let
version = "5.1.5"; version = "5.1.7";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "unrar-${version}"; name = "unrar-${version}";
src = fetchurl { src = fetchurl {
url = "http://www.rarlab.com/rar/unrarsrc-${version}.tar.gz"; url = "http://www.rarlab.com/rar/unrarsrc-${version}.tar.gz";
sha256 = "1jrla255911rbl953br2xbgvyw15kpi11r4lpqm3jlw553ccw912"; sha256 = "13ida8vcamiagl40d9yfjma9k6givxczhx278f1p7bv9wgb8gfmc";
}; };
patchPhase = ''
sed -i \
-e "/CXX=/d" \
-e "/CXXFLAGS=/d" \
makefile
'';
installPhase = '' installPhase = ''
mkdir -p $out/bin installBin unrar
cp unrar $out/bin
mkdir -p $out/share/doc/unrar
cp acknow.txt license.txt \
$out/share/doc/unrar
''; '';
meta = { meta = with stdenv.lib; {
description = "Utility for RAR archives"; description = "Utility for RAR archives";
license = stdenv.lib.licenses.unfree; homepage = http://www.rarlab.com/;
maintainers = [ stdenv.lib.maintainers.emery ]; license = licenses.unfree-redistributable;
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; # arbitrary maintainers = [ maintainers.emery ];
platforms = platforms.all;
}; };
} }