Merge pull request #170438 from SuperSandro2000/lsd

lsd: build man page
This commit is contained in:
Mario Rodas
2022-04-27 05:09:37 -05:00
committed by GitHub
+5 -1
View File
@@ -2,6 +2,7 @@
, fetchFromGitHub
, rustPlatform
, installShellFiles
, pandoc
, testers
, lsd
}:
@@ -19,8 +20,11 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-P0HJVp2ReJuLSZrArw/EAfLFDOZqswI0nD1SCHwegoE=";
nativeBuildInputs = [ installShellFiles ];
nativeBuildInputs = [ installShellFiles pandoc ];
postInstall = ''
pandoc --standalone --to man doc/lsd.md -o lsd.1
installManPage lsd.1
installShellCompletion $releaseDir/build/lsd-*/out/{_lsd,lsd.{bash,fish}}
'';