Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
11 lines
379 B
Nix
11 lines
379 B
Nix
{ lib, 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 lib.meta.defaultPriority) - 1;
|
|
};
|
|
} ''
|
|
install -Dm 755 {${openssh},$out}/bin/ssh-copy-id
|
|
install -Dm 644 {${openssh},$out}/share/man/man1/ssh-copy-id.1.gz
|
|
''
|