Commit 2cbda4c1 authored by Emery Hemingway's avatar Emery Hemingway Committed by Emery Hemingway
Browse files

stubby: add enableStubOnly (ENABLE_STUB_ONLY) option

parent a34d5697
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -8,6 +8,8 @@
  openssl,
  unbound,
  yq,

  enableStubOnly ? false,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -34,8 +36,9 @@ stdenv.mkDerivation (finalAttrs: {
  buildInputs = [
    libidn2
    openssl
    unbound
  ];
  ] ++ lib.optional (!enableStubOnly) unbound;

  cmakeFlags = [ (lib.strings.cmakeBool "ENABLE_STUB_ONLY" enableStubOnly) ];

  # https://github.com/getdnsapi/getdns/issues/517
  postPatch = ''