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