From 868554700bbaf9991aa1c6dd6fd83ab49c4d33ba Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 24 Jun 2007 15:34:44 +0000 Subject: [PATCH] Added unrar svn path=/nixpkgs/trunk/; revision=8916 --- pkgs/tools/archivers/unrar/default.nix | 15 +++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 pkgs/tools/archivers/unrar/default.nix 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; };