lsd: fix build on darwin

This commit is contained in:
Mario Rodas 2023-08-29 00:00:00 +00:00
parent 0fbb1591d8
commit 1d96a0fb97

View file

@ -1,7 +1,9 @@
{ lib { lib
, stdenv
, fetchFromGitHub , fetchFromGitHub
, rustPlatform , rustPlatform
, installShellFiles , installShellFiles
, darwin
, pandoc , pandoc
, testers , testers
, lsd , lsd
@ -21,6 +23,9 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-viLr76Bq9OkPMp+BoprQusMDgx59nbevVi4uxjZ+eZg="; cargoHash = "sha256-viLr76Bq9OkPMp+BoprQusMDgx59nbevVi4uxjZ+eZg=";
nativeBuildInputs = [ installShellFiles pandoc ]; nativeBuildInputs = [ installShellFiles pandoc ];
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
postInstall = '' postInstall = ''
pandoc --standalone --to man doc/lsd.md -o lsd.1 pandoc --standalone --to man doc/lsd.md -o lsd.1
installManPage lsd.1 installManPage lsd.1