mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ lib, stdenv, gettext, fetchurl, fetchpatch }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lrzsz";
|
|
version = "0.12.20";
|
|
|
|
src = fetchurl {
|
|
url = "https://ohse.de/uwe/releases/lrzsz-${version}.tar.gz";
|
|
sha256 = "1wcgfa9fsigf1gri74gq0pa7pyajk12m4z69x7ci9c6x9fqkd2y2";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "CVE-2018-10195.patch";
|
|
url = "https://bugzilla.redhat.com/attachment.cgi?id=79507";
|
|
sha256 = "0jlh8w0cjaz6k56f0h3a0h4wgc51axmrdn3mdspk7apjfzqcvx3c";
|
|
})
|
|
];
|
|
|
|
makeFlags = [ "AR:=$(AR)" ];
|
|
|
|
nativeBuildInputs = [ gettext ];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
configureFlags = [ "--program-transform-name=s/^l//" ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-function-declaration -Wno-error=implicit-int";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://ohse.de/uwe/software/lrzsz.html";
|
|
description = "Communication package providing the XMODEM, YMODEM ZMODEM file transfer protocols";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|