nixpkgs/pkgs/tools/archivers/unarj/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

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

to pname
2019-08-15 13:41:18 +01:00

24 lines
627 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation rec {
pname = "unarj";
version = "2.65";
src = fetchurl {
sha256 = "0r027z7a0azrd5k885xvwhrxicpd0ah57jzmaqlypxha2qjw7p6p";
url = "https://src.fedoraproject.org/repo/pkgs/unarj/${pname}-${version}.tar.gz/c6fe45db1741f97155c7def322aa74aa/${pname}-${version}.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;
};
}