diff --git a/pkgs/tools/archivers/unrar/default.nix b/pkgs/tools/archivers/unrar/default.nix new file mode 100644 index 000000000000..f7ffacbbf632 --- /dev/null +++ b/pkgs/tools/archivers/unrar/default.nix @@ -0,0 +1,15 @@ +{stdenv, fetchurl}: +stdenv.mkDerivation { + name = "unrar"; + + src = fetchurl { + sha256 = "0inzy0jlwqm18i6lq17aq4n2baqqlbjyr6incw4s9cxrvmjq51ls"; + url = http://www.rarlab.com/rar/unrarsrc-3.7.6.tar.gz; + }; + + makeFlags = "-f makefile.unix"; + + installPhase = "mkdir -p \${out}/bin/ ; cp unrar \${out}/bin/;"; + + buildInputs = []; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bd70c1cd13a9..529b194e6cbf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -555,6 +555,10 @@ rec { inherit fetchurl stdenv; }; + unrar = import ../tools/archivers/unrar { + inherit fetchurl stdenv; + }; + unshield = import ../tools/archivers/unshield { inherit fetchurl stdenv zlib; };