gurk-rs: fix build on darwin
This commit is contained in:
parent
d2a94b1a9b
commit
30136a9c93
@ -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;
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user