1 { lib, stdenv, gettext, fetchurl, fetchpatch }:
3 stdenv.mkDerivation rec {
8 url = "https://ohse.de/uwe/releases/lrzsz-${version}.tar.gz";
9 sha256 = "1wcgfa9fsigf1gri74gq0pa7pyajk12m4z69x7ci9c6x9fqkd2y2";
14 name = "CVE-2018-10195.patch";
15 url = "https://bugzilla.redhat.com/attachment.cgi?id=79507";
16 sha256 = "0jlh8w0cjaz6k56f0h3a0h4wgc51axmrdn3mdspk7apjfzqcvx3c";
20 makeFlags = [ "AR:=$(AR)" ];
22 nativeBuildInputs = [ gettext ];
24 hardeningDisable = [ "format" ];
26 configureFlags = [ "--program-transform-name=s/^l//" ];
28 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-function-declaration -Wno-error=implicit-int";
31 homepage = "https://ohse.de/uwe/software/lrzsz.html";
32 description = "Communication package providing the XMODEM, YMODEM ZMODEM file transfer protocols";
33 license = licenses.gpl2Plus;
34 platforms = platforms.unix;