2024-09-19 14:19:46 +00:00
|
|
|
{ lib, runCommand, openssh }:
|
2021-04-08 16:26:57 +00:00
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
runCommand "ssh-copy-id-${openssh.version}" {
|
2021-04-08 16:26:57 +00:00
|
|
|
meta = openssh.meta // {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool to copy SSH public keys to a remote machine";
|
2024-09-19 14:19:46 +00:00
|
|
|
priority = (openssh.meta.priority or lib.meta.defaultPriority) - 1;
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
} ''
|
|
|
|
install -Dm 755 {${openssh},$out}/bin/ssh-copy-id
|
|
|
|
install -Dm 644 {${openssh},$out}/share/man/man1/ssh-copy-id.1.gz
|
|
|
|
''
|