lsd: fix build on darwin
This commit is contained in:
parent
0fbb1591d8
commit
1d96a0fb97
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue