about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/gurk-rs
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2022-11-04 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2022-11-04 04:20:00 +0000
commit30136a9c9310001fbfeafe0d666d0de829afa9f0 (patch)
treee3185a17a6edc412d4287080cc7ff13240577d3b /pkgs/applications/networking/instant-messengers/gurk-rs
parentd2a94b1a9bf018d43f140bd98a2b93424761d56f (diff)
gurk-rs: fix build on darwin
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/gurk-rs')
-rw-r--r--pkgs/applications/networking/instant-messengers/gurk-rs/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/networking/instant-messengers/gurk-rs/default.nix b/pkgs/applications/networking/instant-messengers/gurk-rs/default.nix
index fd8099bb9132b..15564de272712 100644
--- a/pkgs/applications/networking/instant-messengers/gurk-rs/default.nix
+++ b/pkgs/applications/networking/instant-messengers/gurk-rs/default.nix
@@ -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;