Unverified Commit 26fb2783 authored by Robert Scott's avatar Robert Scott Committed by GitHub
Browse files

Merge pull request #231920 from figsoda/tickrs

tickrs: fix build on darwin
parents 7b0ef853 2b394ff6
Loading
Loading
Loading
Loading
+22 −3
Original line number Diff line number Diff line
{ 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";
+1 −3
Original line number Diff line number Diff line
@@ -34364,9 +34364,7 @@ with pkgs;
  ticker = callPackage ../applications/misc/ticker { };
  tickrs = callPackage ../applications/misc/tickrs {
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  tickrs = callPackage ../applications/misc/tickrs { };
  tilemaker = callPackage ../applications/misc/tilemaker { };