mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-18 06:31:15 +00:00
wayshot: add manpages
This commit is contained in:
@@ -35,7 +35,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
];
|
||||
cargoHash = "sha256-J7ZKWx258bBCNBd061aCeKgTdcWMUF4yzAiIa9l8ZRA=";
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
postInstall = ''
|
||||
installManPage docs/wayshot.1.scd docs/wayshot.5.scd docs/wayshot.7.scd
|
||||
''
|
||||
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd wayshot \
|
||||
--bash <($out/bin/wayshot --completions bash) \
|
||||
--fish <($out/bin/wayshot --completions fish) \
|
||||
|
||||
Reference in New Issue
Block a user