Unverified Commit cad31696 authored by lassulus's avatar lassulus Committed by GitHub
Browse files

h2o: add mruby support (#381685)

parents c02c7ddc 2f4ee1e6
Loading
Loading
Loading
Loading
+19 −6
Original line number Diff line number Diff line
@@ -13,6 +13,9 @@
  libuv,
  wslay,
  zlib,
  withMruby ? false,
  bison,
  ruby,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -33,12 +36,18 @@ stdenv.mkDerivation (finalAttrs: {
    "lib"
  ];

  nativeBuildInputs = [
  nativeBuildInputs =
    [
      pkg-config
      cmake
      makeWrapper
      ninja
    ]
    ++ lib.optionals withMruby [
      bison
      ruby
    ];

  buildInputs = [
    brotli
    openssl
@@ -49,6 +58,10 @@ stdenv.mkDerivation (finalAttrs: {
    wslay
  ];

  cmakeFlags = [
    "-DWITH_MRUBY=${if withMruby then "ON" else "OFF"}"
  ];

  postInstall = ''
    EXES="$(find "$out/share/h2o" -type f -executable)"
    for exe in $EXES; do