159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
23 lines
473 B
Nix
23 lines
473 B
Nix
{
|
|
lib,
|
|
installShellFiles,
|
|
runCommandLocal,
|
|
}:
|
|
|
|
runCommandLocal "install-shell-files--install-manpage"
|
|
{
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
meta.platforms = lib.platforms.all;
|
|
}
|
|
''
|
|
mkdir -p doc
|
|
echo foo > doc/foo.1
|
|
echo bar > doc/bar.2.gz
|
|
echo baz > doc/baz.3
|
|
|
|
installManPage doc/*
|
|
|
|
cmp doc/foo.1 $out/share/man/man1/foo.1
|
|
cmp doc/bar.2.gz $out/share/man/man2/bar.2.gz
|
|
cmp doc/baz.3 $out/share/man/man3/baz.3
|
|
''
|