Merge pull request #332227 from Brawl345/tlrc-darwin-fix

tlrc: fix build on darwin
This commit is contained in:
Sebastián Mancilla 2024-08-15 23:36:23 -04:00 committed by GitHub
commit ac03902eda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,9 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, installShellFiles
, darwin
}:
rustPlatform.buildRustPackage rec {
@ -19,6 +21,10 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
postInstall = ''
installManPage tldr.1
installShellCompletion completions/{tldr.bash,_tldr,tldr.fish}