Merge pull request #208226 from wegank/tauri-darwin

This commit is contained in:
Artturi 2023-01-04 17:56:31 +02:00 committed by GitHub
commit b546ed5a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
@ -7,8 +8,12 @@
, cairo
, gtk3
, webkitgtk
, darwin
}:
let
inherit (darwin.apple_sdk.frameworks) CoreServices Security;
in
rustPlatform.buildRustPackage rec {
pname = "tauri";
version = "1.2.3";
@ -26,7 +31,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-Hp6+T2CN0CsXaGnCVqAYaOjZNDkmI+MXDfHIgbU1S0g=";
buildInputs = [ glibc libsoup cairo gtk3 webkitgtk ];
buildInputs = lib.optionals stdenv.isLinux [ glibc libsoup cairo gtk3 webkitgtk ]
++ lib.optionals stdenv.isDarwin [ CoreServices Security ];
nativeBuildInputs = [ pkg-config ];
meta = with lib; {