gurk-rs: fix build on darwin

This commit is contained in:
Mario Rodas 2022-11-04 04:20:00 +00:00
parent d2a94b1a9b
commit 30136a9c93
2 changed files with 9 additions and 3 deletions

View file

@ -3,6 +3,7 @@
, protobuf
, rustPlatform
, fetchFromGitHub
, Cocoa
}:
rustPlatform.buildRustPackage rec {
@ -22,12 +23,15 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-jS6wAswGqgfmpPV6qERhqn1IhpcBSDNh8HDdPo04F0A=";
buildInputs = [ protobuf ];
nativeBuildInputs = [ protobuf ];
buildInputs = lib.optionals stdenv.isDarwin [ Cocoa ];
NIX_LDFLAGS = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ "-framework" "AppKit" ];
PROTOC = "${protobuf}/bin/protoc";
meta = with lib; {
broken = stdenv.isDarwin;
description = "Signal Messenger client for terminal";
homepage = "https://github.com/boxdot/gurk-rs";
license = licenses.agpl3Only;

View file

@ -28497,7 +28497,9 @@ with pkgs;
fftw = fftwSinglePrec;
};
gurk-rs = callPackage ../applications/networking/instant-messengers/gurk-rs { };
gurk-rs = callPackage ../applications/networking/instant-messengers/gurk-rs {
inherit (darwin.apple_sdk.frameworks) Cocoa;
};
gjay = callPackage ../applications/audio/gjay { };