Unverified Commit 5266abb7 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

libpcap: allow building with RDMA protocol support (#498298)

parents 4f2d8155 8abcd1fb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -10,7 +10,9 @@
  libnl,
  libxcrypt,
  pkg-config,
  rdma-core,
  withBluez ? false,
  withRdma ? false,
  withRemote ? false,

  # for passthru.tests
@@ -46,6 +48,7 @@ stdenv.mkDerivation (finalAttrs: {
    bash
  ]
  ++ lib.optionals stdenv.hostPlatform.isLinux [ libnl ]
  ++ lib.optionals withRdma [ rdma-core ]
  ++ lib.optionals withRemote [ libxcrypt ]
  ++ lib.optionals withBluez [ bluez ];

@@ -63,6 +66,9 @@ stdenv.mkDerivation (finalAttrs: {
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    "--disable-universal"
  ]
  ++ lib.optionals withRdma [
    "--enable-rdma"
  ]
  ++ lib.optionals withRemote [
    "--enable-remote"
  ]