about summary refs log tree commit diff
path: root/pkgs/os-specific/linux
diff options
context:
space:
mode:
authorIlan Joselevich <personal@ilanjoselevich.com>2024-04-16 11:39:42 +0300
committerGitHub <noreply@github.com>2024-04-16 11:39:42 +0300
commit140e6a0e37cd3f0eb2cd5d0e75a97426f623b8dd (patch)
treef218b6fe104c2e50a7b183bf454b94f00b07d6a6 /pkgs/os-specific/linux
parentb987e0c6ad592b74332c4e3c25874a17bcfdc451 (diff)
parent95560d551395b80768f81c0fee9aafabbde27807 (diff)
Merge pull request #304154 from CnTeng/pam_rssh
pam_rssh: fix openssh without dsa support
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r--pkgs/os-specific/linux/pam_rssh/default.nix25
1 files 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 2da53d4627909..8b4224d6f4dfe 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";