dogdns: install man pages

This commit is contained in:
Maximilian Bosch 2022-02-01 20:20:18 +01:00
parent de5a223562
commit 4e9a5ef3bc
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -5,6 +5,8 @@
, stdenv , stdenv
, pkg-config , pkg-config
, openssl , openssl
, just
, pandoc
, Security , Security
}: }:
@ -19,15 +21,22 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-y3T0vXg7631FZ4bzcbQjz3Buui/DFxh9LG8BZWwynp0="; sha256 = "sha256-y3T0vXg7631FZ4bzcbQjz3Buui/DFxh9LG8BZWwynp0=";
}; };
nativeBuildInputs = [ installShellFiles ] nativeBuildInputs = [ installShellFiles just pandoc ]
++ lib.optionals stdenv.isLinux [ pkg-config ]; ++ lib.optionals stdenv.isLinux [ pkg-config ];
buildInputs = lib.optionals stdenv.isLinux [ openssl ] buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security ]; ++ lib.optionals stdenv.isDarwin [ Security ];
outputs = [ "out" "man" ];
postBuild = ''
just man
'';
cargoSha256 = "sha256-agepQVJbqbjzFbEBKbM7BNxc8FlklOrCsTgCAOcuptc="; cargoSha256 = "sha256-agepQVJbqbjzFbEBKbM7BNxc8FlklOrCsTgCAOcuptc=";
postInstall = '' postInstall = ''
installShellCompletion completions/dog.{bash,fish,zsh} installShellCompletion completions/dog.{bash,fish,zsh}
installManPage ./target/man/*.1
''; '';
meta = with lib; { meta = with lib; {