3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/xinetd/default.nix

32 lines
879 B
Nix
Raw Normal View History

2021-01-15 07:07:56 +00:00
{ fetchurl, fetchpatch, lib, stdenv, libtirpc }:
stdenv.mkDerivation rec {
pname = "xinetd";
version = "2.3.15";
src = fetchurl {
url = "http://www.xinetd.org/xinetd-${version}.tar.gz";
sha256 = "1qsv1al506x33gh92bqa8w21k7mxqrbsrwmxvkj0amn72420ckmz";
};
2016-11-16 18:31:20 +00:00
patches = [
(fetchpatch {
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-apps/xinetd/files/xinetd-2.3.15-creds.patch?id=426002bfe2789fb6213fba832c8bfee634d68d02";
name = "CVE-2013-4342.patch";
sha256 = "1iqcrqzgisz4b6vamprzg2y6chai7qpifqcihisrwbjwbc4wzj8v";
})
];
2020-08-22 18:36:46 +01:00
buildInputs = [ libtirpc ];
NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
NIX_LDFLAGS = [ "-ltirpc" ];
meta = {
description = "Secure replacement for inetd";
2021-01-15 07:07:56 +00:00
platforms = lib.platforms.linux;
homepage = "http://xinetd.org";
2021-01-15 07:07:56 +00:00
license = lib.licenses.free;
};
}