Skip to content

Commit

Permalink
pam_rssh: init at unstable-2023-01-09
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMagee committed Apr 8, 2023
1 parent 456d819 commit 3780f77
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkgs/os-specific/linux/pam_rssh/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
lib,
fetchFromGitHub,
rustPlatform,
openssl,
pam,
pkg-config,
}:
rustPlatform.buildRustPackage rec {
pname = "pam_rssh";
version = "unstable-2023-01-12";

src = fetchFromGitHub {
owner = "z4yx";
repo = pname;
rev = "773823b9a8605436e5bcfabd1c3ff8deb8503f43";
hash = "sha512-rAr4ugo+IaxOKXtfEq9stK4edodork2uz10trHDv9MN4Oc296uDQjLh8Sle04Z4mbW56rWlT8eHrW6YpqGHFpw==";
fetchSubmodules = true;
};

cargoHash = "sha512-gSZ2EAhFJ1XqYmrVqJm3QP0l433XQxvkstkvyDAFZXB6KXiGzN0EoFxYoTdD0q2fE3tr5EBlmm4iC/Jo3wi4sg==";

nativeBuildInputs = [
pkg-config
];

buildInputs = [
openssl
pam
];

doCheck = false;
# How do disable specific tests?
# checkFlags = [
# # Expects $USER and $SSH_AUTH_SOCK
# "--skip=lib::tests::sshagent_list_identities"
# "--skip=lib::tests::sshagent_auth"
# "--skip=lib::tests::sshagent_more_auth"
# "--skip=lib::tests::parse_user_authorized_keys"
# ];

meta = with lib; {
description = "Remote sudo authenticated via ssh-agent";
homepage = "https://github.com/z4yx/pam_rssh";
license = licenses.mit;
maintainers = with maintainers; [jamiemagee];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27019,6 +27019,8 @@ with pkgs;

pam_pgsql = callPackage ../os-specific/linux/pam_pgsql { };

pam_rssh = callPackage ../os-specific/linux/pam_rssh { };

pam_ssh_agent_auth = callPackage ../os-specific/linux/pam_ssh_agent_auth { };

pam_tmpdir = callPackage ../os-specific/linux/pam_tmpdir { };
Expand Down

0 comments on commit 3780f77

Please sign in to comment.