Merge pull request #255796 from Majiir/pam_rssh-1.1.0
pam_rssh: fix 1.1.0 update
This commit is contained in:
commit
17a46d09ac
1 changed files with 11 additions and 4 deletions
|
@ -1,25 +1,32 @@
|
||||||
{ lib
|
{ lib
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, coreutils
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, openssl
|
, openssl
|
||||||
, pam
|
, pam
|
||||||
, openssh
|
, openssh
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "pam_rssh";
|
pname = "pam_rssh";
|
||||||
version = "1.1.0";
|
version = "1.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "z4yx";
|
owner = "z4yx";
|
||||||
repo = "pam_rssh";
|
repo = "pam_rssh";
|
||||||
rev = "92c240bd079e9711c7afa8bacfcf01de48f42577";
|
rev = "v${version}";
|
||||||
hash = "sha256-mIQeItPh6RrF3cFbAth2Kmb2E/Xj+lOgatvjcLE4Yag=";
|
hash = "sha256-SDtMqGy2zhq9jEQVwSEl4EwRp2jgXfTVLrCX7k/kBeU=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-QMyMqsjZ91WimIaaSCXtbRScS3BoB+yFtHjx3xViq7U=";
|
cargoHash = "sha256-gNy1tcHDUOG1XduGAIMapvx5dlq+U1LitUQkccGfb9o=";
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/auth_keys.rs \
|
||||||
|
--replace '/bin/echo' '${coreutils}/bin/echo' \
|
||||||
|
--replace '/bin/false' '${coreutils}/bin/false'
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
|
|
Loading…
Reference in a new issue