Skip to content

Commit

Permalink
tealdeer: rustls -> native-tls
Browse files Browse the repository at this point in the history
  • Loading branch information
newAM committed Oct 6, 2024
1 parent c8a1704 commit 8b7199f
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions pkgs/tools/misc/tealdeer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
, rustPlatform
, fetchFromGitHub
, installShellFiles
, pkg-config
, openssl
, Security
}:

Expand All @@ -19,9 +21,22 @@ rustPlatform.buildRustPackage rec {

cargoHash = "sha256-WCbpwvCXm54/Cv+TscaqseWzTUd8V1DxmS30fUZZTwI=";

buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
# use OpenSSL for the TLS backend instead of the default rustls
buildNoDefaultFeatures = true;
buildFeatures = [ "native-tls" ];

nativeBuildInputs = [ installShellFiles ];
nativeBuildInputs = [
installShellFiles
pkg-config
];

buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
openssl
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
Security
];

env.OPENSSL_NO_VENDOR = true;

postInstall = ''
installShellCompletion --cmd tldr \
Expand Down

0 comments on commit 8b7199f

Please sign in to comment.