openssh: add version check
Check the version of both ssh and sshd in an installCheckPhase. Seems prudent given recent version shenanigans upstream: https://www.openwall.com/lists/oss-security/2025/04/09/6
This commit is contained in:
@@ -202,6 +202,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"sysconfdir=\${out}/etc/ssh"
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
for binary in ssh sshd; do
|
||||
$out/bin/$binary -V 2>&1 | grep -P "$(printf '^OpenSSH_\\Q%s\\E,' "$version")"
|
||||
done
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
inherit withKerberos;
|
||||
tests = {
|
||||
|
||||
Reference in New Issue
Block a user