Unverified Commit 3fea61a8 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

zeal: fix build on darwin (#458593)

parents 02d85422 fe399413
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -47,6 +47,16 @@ stdenv.mkDerivation (finalAttrs: {
    (lib.cmakeBool "ZEAL_RELEASE_BUILD" true)
  ];

  installPhase = lib.optionalString stdenv.hostPlatform.isDarwin ''
    runHook preInstall

    mkdir -p $out/{Applications,bin}
    cp -r Zeal.app $out/Applications
    ln -s $out/Applications/Zeal.app/Contents/MacOS/Zeal $out/bin/zeal

    runHook postInstall
  '';

  meta = {
    description = "Simple offline API documentation browser";
    longDescription = ''