zipline: refactor environment variables (#377101)
[NixPkgs.git] / pkgs / by-name / li / libndp / package.nix
blob933c0aaa54dd9574f115b5764ffe75782217a1e4
2   lib,
3   stdenv,
4   fetchurl,
5   autoreconfHook,
6   gitUpdater,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "libndp";
11   version = "1.9";
13   src = fetchurl {
14     url = "http://libndp.org/files/libndp-${version}.tar.gz";
15     hash = "sha256-qKshTgHcOpthUnaQU5VjfzkSmMhNd2UfDL8LEILdLdQ=";
16   };
18   patches = [
19     (fetchurl {
20       name = "musl.patch";
21       url = "https://git.alpinelinux.org/aports/plain/community/libndp/0001-Patch-libndp.c.patch?id=00406a9c697d88f531962cb63e5343488a959b93";
22       hash = "sha256-1ZcXgZv3mYtt5NaK4rUMnScWVajlWQ+anzBDS5IfgJI=";
23     })
24   ];
26   nativeBuildInputs = [ autoreconfHook ];
28   configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
29     "ac_cv_func_malloc_0_nonnull=yes"
30   ];
32   passthru.updateScript = gitUpdater {
33     url = "https://github.com/jpirko/libndp.git";
34     rev-prefix = "v";
35   };
37   meta = with lib; {
38     homepage = "http://libndp.org/";
39     description = "Library for Neighbor Discovery Protocol";
40     mainProgram = "ndptool";
41     platforms = platforms.linux;
42     maintainers = [ ];
43     license = licenses.lgpl21;
44   };