Unverified Commit 631818fd authored by Kenichi Kamiya's avatar Kenichi Kamiya
Browse files

prs: fix sandbox build on darwin

parent e4e70495
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
  gpgme,
  gtk3,
  stdenv,
  writableTmpDirAsHomeHook,
}:

rustPlatform.buildRustPackage rec {
@@ -29,6 +30,11 @@ rustPlatform.buildRustPackage rec {
    installShellFiles
    pkg-config
    python3
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    # fix following error on darwin sandbox mode:
    # objc/notify.h:1:9: fatal error: could not build module 'Cocoa'
    writableTmpDirAsHomeHook
  ];

  cargoBuildFlags = [