nixpkgs/pkgs/tools/misc/lrzsz/default.nix
Robert Scott edc01d05a9 lrzsz: add patch for CVE-2018-10195
provide gettext because modifying source files triggers
localization regeneration
2021-07-24 22:07:09 +01:00

32 lines
854 B
Nix

{ lib, stdenv, gettext, fetchurl, fetchpatch }:
stdenv.mkDerivation rec {
name = "lrzsz-0.12.20";
src = fetchurl {
url = "https://ohse.de/uwe/releases/${name}.tar.gz";
sha256 = "1wcgfa9fsigf1gri74gq0pa7pyajk12m4z69x7ci9c6x9fqkd2y2";
};
patches = [
(fetchpatch {
name = "CVE-2018-10195.patch";
url = "https://bugzilla.redhat.com/attachment.cgi?id=79507";
sha256 = "0jlh8w0cjaz6k56f0h3a0h4wgc51axmrdn3mdspk7apjfzqcvx3c";
})
];
nativeBuildInputs = [ gettext ];
hardeningDisable = [ "format" ];
configureFlags = [ "--program-transform-name=s/^l//" ];
meta = with lib; {
homepage = "https://ohse.de/uwe/software/lrzsz.html";
description = "Communication package providing the XMODEM, YMODEM ZMODEM file transfer protocols";
license = licenses.gpl2;
platforms = platforms.unix;
};
}