about summary refs log tree commit diff
path: root/pkgs/applications/misc/tickrs
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-05-14 17:14:50 -0400
committerfigsoda <figsoda@pm.me>2023-05-14 17:14:50 -0400
commit2b394ff638b770eb15e9c0d0d28abed64ea144d6 (patch)
tree96d7b49ab00c61dd48018289a5e27245fed2b1ef /pkgs/applications/misc/tickrs
parentb753135b5309afcca69579eb1fae35e839e046ee (diff)
tickrs: fix build on darwin
Diffstat (limited to 'pkgs/applications/misc/tickrs')
-rw-r--r--pkgs/applications/misc/tickrs/default.nix25
1 files changed, 22 insertions, 3 deletions
diff --git a/pkgs/applications/misc/tickrs/default.nix b/pkgs/applications/misc/tickrs/default.nix
index b28a740501ba3..dcddaab34d7b6 100644
--- a/pkgs/applications/misc/tickrs/default.nix
+++ b/pkgs/applications/misc/tickrs/default.nix
@@ -1,4 +1,12 @@
-{ lib, stdenv, rustPlatform, fetchFromGitHub, perl, Security }:
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, pkg-config
+, openssl
+, zlib
+, stdenv
+, darwin
+}:
 
 rustPlatform.buildRustPackage rec {
   pname = "tickrs";
@@ -13,9 +21,20 @@ rustPlatform.buildRustPackage rec {
 
   cargoHash = "sha256-fOYxOiVpgflwIz9Z6ePhQKDa7DX4D/ZCnPOwq9vWOSk=";
 
-  nativeBuildInputs = [ perl ];
+  nativeBuildInputs = [
+    pkg-config
+  ];
 
-  buildInputs = lib.optionals stdenv.isDarwin [ Security ];
+  buildInputs = [
+    openssl
+    zlib
+  ] ++ lib.optionals stdenv.isDarwin [
+    darwin.apple_sdk.frameworks.SystemConfiguration
+  ];
+
+  env = {
+    OPENSSL_NO_VENDOR = true;
+  };
 
   meta = with lib; {
     description = "Realtime ticker data in your terminal";