2007-06-24 16:34:44 +01:00
|
|
|
{stdenv, fetchurl}:
|
2014-04-07 22:13:24 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "5.1.2";
|
|
|
|
in
|
2007-06-24 16:34:44 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-04-07 22:13:24 +01:00
|
|
|
name = "unrar-${version}";
|
2007-06-24 16:34:44 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-04-07 22:13:24 +01:00
|
|
|
url = "http://www.rarlab.com/rar/unrarsrc-${version}.tar.gz";
|
|
|
|
sha256 = "0344cn4w3lw2111m3g431khiyndx9ibbp952bli1inx2fixps9cq";
|
2007-06-24 16:34:44 +01:00
|
|
|
};
|
|
|
|
|
2014-04-07 22:13:24 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i \
|
|
|
|
-e "/CXX=/d" \
|
|
|
|
-e "/CXXFLAGS=/d" \
|
|
|
|
makefile
|
2010-01-08 20:04:23 +00:00
|
|
|
'';
|
2007-06-24 16:34:44 +01:00
|
|
|
|
2010-01-07 22:42:25 +00:00
|
|
|
installPhase = ''
|
2014-04-07 22:13:24 +01:00
|
|
|
mkdir -p $out/bin
|
2010-01-07 22:42:25 +00:00
|
|
|
cp unrar $out/bin
|
|
|
|
'';
|
2007-06-24 16:34:44 +01:00
|
|
|
|
2014-04-07 22:13:24 +01:00
|
|
|
meta = {
|
|
|
|
description = "Utility for RAR archives";
|
|
|
|
license = "freeware";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.emery ];
|
|
|
|
platforms = stdenv.lib.platforms.linux; # arbitrary
|
|
|
|
};
|
2007-06-24 16:34:44 +01:00
|
|
|
}
|