Skip to content

Commit 7258a63

Browse files
committed
Install man pages
1 parent 782c42e commit 7258a63

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flake.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
lockFile = ./Cargo.lock;
3434
};
3535

36+
nativeBuildInputs = [ installShellFiles ];
3637
buildInputs = [ sqlite ];
3738

3839
postInstall = ''
@@ -42,6 +43,12 @@
4243
substituteInPlace command-not-found.nu \
4344
--subst-var out
4445
install -Dm555 command-not-found.nu -t $out/etc/profile.d
46+
47+
"$out/bin/nix-locate" --mangen > nix-locate.1
48+
"$out/bin/nix-index" --mangen > nix-index.1
49+
"$out/bin/nix-channel-index" --mangen > nix-channel-index.1
50+
51+
installManPage nix-locate.1 nix-index.1 nix-channel-index.1
4552
'';
4653

4754
meta = with lib; {

0 commit comments

Comments
 (0)