From 95560d551395b80768f81c0fee9aafabbde27807 Mon Sep 17 00:00:00 2001 From: CnTeng Date: Mon, 15 Apr 2024 10:26:51 +0800 Subject: [PATCH] pam_rssh: fix openssh without dsa support --- pkgs/os-specific/linux/pam_rssh/default.nix | 25 +++++++++------------ 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/pkgs/os-specific/linux/pam_rssh/default.nix b/pkgs/os-specific/linux/pam_rssh/default.nix index 2da53d462790..8b4224d6f4df 100644 --- a/pkgs/os-specific/linux/pam_rssh/default.nix +++ b/pkgs/os-specific/linux/pam_rssh/default.nix @@ -1,11 +1,12 @@ -{ lib -, rustPlatform -, fetchFromGitHub -, coreutils -, pkg-config -, openssl -, pam -, openssh +{ + lib, + rustPlatform, + fetchFromGitHub, + coreutils, + pkg-config, + openssl, + pam, + openssh, }: rustPlatform.buildRustPackage rec { @@ -28,9 +29,7 @@ rustPlatform.buildRustPackage rec { --replace '/bin/false' '${coreutils}/bin/false' ''; - nativeBuildInputs = [ - pkg-config - ]; + nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl @@ -42,9 +41,7 @@ rustPlatform.buildRustPackage rec { "--skip=tests::parse_user_authorized_keys" ]; - nativeCheckInputs = [ - openssh - ]; + nativeCheckInputs = [ (openssh.override { dsaKeysSupport = true; }) ]; env.USER = "nixbld";