about summary refs log tree commit diff
path: root/pkgs/tools/networking/openssh/copyid.nix
blob: b0b0d9c96a32cf4564021377caa6ff96bb2f70cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
{ runCommand, openssh }:

runCommand "ssh-copy-id-${openssh.version}" {
  meta = openssh.meta // {
    description = "Tool to copy SSH public keys to a remote machine";
    priority = (openssh.meta.priority or 0) - 1;
  };
} ''
  install -Dm 755 {${openssh},$out}/bin/ssh-copy-id
  install -Dm 644 {${openssh},$out}/share/man/man1/ssh-copy-id.1.gz
''