summary refs log tree commit diff
path: root/pkgs/tools/archivers/unarj/default.nix
blob: 2505c012b26b1d27c6715c7b1139ad4d64487032 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{stdenv, fetchurl}:

stdenv.mkDerivation rec {
  name = "unarj-${version}";
  version = "2.65";

  src = fetchurl {
    sha256 = "0r027z7a0azrd5k885xvwhrxicpd0ah57jzmaqlypxha2qjw7p6p";
    url = "http://src.fedoraproject.org/repo/pkgs/unarj/${name}.tar.gz/c6fe45db1741f97155c7def322aa74aa/${name}.tar.gz";
  };

  preInstall = ''
    mkdir -p $out/bin
    sed -i -e s,/usr/local/bin,$out/bin, Makefile
  '';

  meta = with stdenv.lib; {
    description = "Unarchiver of ARJ files";
    license = licenses.free;
    # Vulnerable to CVE-2015-0557 & possibly CVE-2015-0556, CVE-2015-2782:
    broken = true;
  };
}