Merge pull request #255796 from Majiir/pam_rssh-1.1.0

pam_rssh: fix 1.1.0 update

authored by Ilan Joselevich and committed by GitHub 17a46d09 4dc624f9

+11 -4
+11 -4
pkgs/os-specific/linux/pam_rssh/default.nix
··· 1 1 { lib 2 2 , rustPlatform 3 3 , fetchFromGitHub 4 + , coreutils 4 5 , pkg-config 5 6 , openssl 6 7 , pam 7 8 , openssh 8 9 }: 9 10 10 - rustPlatform.buildRustPackage { 11 + rustPlatform.buildRustPackage rec { 11 12 pname = "pam_rssh"; 12 13 version = "1.1.0"; 13 14 14 15 src = fetchFromGitHub { 15 16 owner = "z4yx"; 16 17 repo = "pam_rssh"; 17 - rev = "92c240bd079e9711c7afa8bacfcf01de48f42577"; 18 - hash = "sha256-mIQeItPh6RrF3cFbAth2Kmb2E/Xj+lOgatvjcLE4Yag="; 18 + rev = "v${version}"; 19 + hash = "sha256-SDtMqGy2zhq9jEQVwSEl4EwRp2jgXfTVLrCX7k/kBeU="; 19 20 fetchSubmodules = true; 20 21 }; 21 22 22 - cargoHash = "sha256-QMyMqsjZ91WimIaaSCXtbRScS3BoB+yFtHjx3xViq7U="; 23 + cargoHash = "sha256-gNy1tcHDUOG1XduGAIMapvx5dlq+U1LitUQkccGfb9o="; 24 + 25 + postPatch = '' 26 + substituteInPlace src/auth_keys.rs \ 27 + --replace '/bin/echo' '${coreutils}/bin/echo' \ 28 + --replace '/bin/false' '${coreutils}/bin/false' 29 + ''; 23 30 24 31 nativeBuildInputs = [ 25 32 pkg-config