Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 36 lines 990 B view raw
1{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 pname = "libndp"; 5 version = "1.8"; 6 7 src = fetchurl { 8 url = "http://libndp.org/files/libndp-${version}.tar.gz"; 9 sha256 = "sha256-iP+2buLrUn8Ub1wC9cy8OLqX0rDVfrRr+6SIghqwwCs="; 10 }; 11 12 patches = [ 13 (fetchpatch { 14 # https://github.com/jpirko/libndp/issues/26 15 name = "CVE-2024-5564.patch"; 16 url = "https://github.com/jpirko/libndp/commit/05e4ba7b0d126eea4c04387dcf40596059ee24af.patch"; 17 hash = "sha256-O7AHjCqic7iUfMbKYLGgBAU+wdR9/MDWxBWJw+CFn/c="; 18 }) 19 ]; 20 21 nativeBuildInputs = [ autoreconfHook ]; 22 23 configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 24 "ac_cv_func_malloc_0_nonnull=yes" 25 ]; 26 27 meta = with lib; { 28 homepage = "http://libndp.org/"; 29 description = "Library for Neighbor Discovery Protocol"; 30 mainProgram = "ndptool"; 31 platforms = platforms.linux; 32 maintainers = [ ]; 33 license = licenses.lgpl21; 34 }; 35 36}