Unverified Commit 626b549a authored by Piotr Kwiecinski's avatar Piotr Kwiecinski
Browse files

frankenphp: add versionCheckHook

parent 2da15b58
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@
  php,
  brotli,
  watcher,
  testers,
  frankenphp,
  cctools,
  darwin,
@@ -15,6 +14,7 @@
  makeBinaryWrapper,
  runCommand,
  writeText,
  versionCheckHook,
}:

let
@@ -103,15 +103,14 @@ buildGoModule rec {

  doCheck = false;

  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "version";
  doInstallCheck = true;

  passthru = {
    php = phpEmbedWithZts;
    tests = {
      # TODO: real NixOS test with Symfony application
      version = testers.testVersion {
        inherit version;
        package = frankenphp;
        command = "frankenphp version";
      };
      phpinfo =
        runCommand "php-cli-phpinfo"
          {