Unverified Commit ae0d4899 authored by Ryan Lahfa's avatar Ryan Lahfa Committed by GitHub
Browse files

lix: fix `installCheckPhase` on Darwin (#504519)

parents 566e0e6a 93da9175
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ assert lib.assertMsg (
  closureInfo,
  runCommand,
  meson,
  bash,
  bison,
  boehmgc,
  boost,
@@ -35,6 +36,7 @@ assert lib.assertMsg (
  cargo,
  curl,
  cmake,
  darwin,
  doxygen,
  editline,
  flex,
@@ -375,6 +377,19 @@ stdenv.mkDerivation (finalAttrs: {
        ))
        (lib.mesonOption "build-test-shell" "${pkgsStatic.bash}/bin")
      ]
  ++
    lib.optionals
      (stdenv.hostPlatform.isDarwin && finalAttrs.doInstallCheck && lib.versionAtLeast version "2.95")
      [
        (lib.mesonOption "build-test-env" (
          lib.makeBinPath [
            darwin.file_cmds
            darwin.shell_cmds
            darwin.text_cmds
          ]
        ))
        (lib.mesonOption "build-test-shell" "${bash}/bin")
      ]
  ++ lib.optionals (lib.versionAtLeast version "2.95") [
    "--${
      if stdenv.hostPlatform != stdenv.buildPlatform then "cross" else "native"