tickrs: fix build on darwin

This commit is contained in:
figsoda 2023-05-14 17:14:50 -04:00
parent b753135b53
commit 2b394ff638
2 changed files with 23 additions and 6 deletions

View file

@ -1,4 +1,12 @@
{ lib, stdenv, rustPlatform, fetchFromGitHub, perl, Security }: { lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, zlib
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "tickrs"; pname = "tickrs";
@ -13,9 +21,20 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-fOYxOiVpgflwIz9Z6ePhQKDa7DX4D/ZCnPOwq9vWOSk="; 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; { meta = with lib; {
description = "Realtime ticker data in your terminal"; description = "Realtime ticker data in your terminal";

View file

@ -34350,9 +34350,7 @@ with pkgs;
ticker = callPackage ../applications/misc/ticker { }; ticker = callPackage ../applications/misc/ticker { };
tickrs = callPackage ../applications/misc/tickrs { tickrs = callPackage ../applications/misc/tickrs { };
inherit (darwin.apple_sdk.frameworks) Security;
};
tilemaker = callPackage ../applications/misc/tilemaker { }; tilemaker = callPackage ../applications/misc/tilemaker { };