eac5176529
This license is BAD and it needs to be caught. You need to agree to the use conditions or you have to remove the software from your machine which makes it not redistributable. cc @ehmry
32 lines
677 B
Nix
32 lines
677 B
Nix
{stdenv, fetchurl}:
|
|
|
|
let
|
|
version = "5.1.5";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "unrar-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.rarlab.com/rar/unrarsrc-${version}.tar.gz";
|
|
sha256 = "1jrla255911rbl953br2xbgvyw15kpi11r4lpqm3jlw553ccw912";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -i \
|
|
-e "/CXX=/d" \
|
|
-e "/CXXFLAGS=/d" \
|
|
makefile
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp unrar $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
description = "Utility for RAR archives";
|
|
license = stdenv.lib.licenses.unfree;
|
|
maintainers = [ stdenv.lib.maintainers.emery ];
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; # arbitrary
|
|
};
|
|
}
|