pam: 1.5.3 -> 1.6.0

Changes: https://github.com/linux-pam/linux-pam/releases/tag/v1.6.0
This commit is contained in:
Sergei Trofimovich 2024-01-19 20:35:36 +00:00
parent 331c789712
commit bc73401bf6

View file

@ -1,5 +1,4 @@
{ lib, stdenv, buildPackages, fetchurl
, fetchpatch
, flex, cracklib, db4, gettext, audit, libxcrypt
, nixosTests
, autoreconfHook269, pkg-config-unwrapped
@ -7,23 +6,15 @@
stdenv.mkDerivation rec {
pname = "linux-pam";
version = "1.5.3";
version = "1.6.0";
src = fetchurl {
url = "https://github.com/linux-pam/linux-pam/releases/download/v${version}/Linux-PAM-${version}.tar.xz";
hash = "sha256-esS1D+7gBKn6iPHf0tL6c4qCiWdjBQzXc7PFSwqBgoM=";
hash = "sha256-//SjTlu+534ujxmS8nYx4jKby/igVj3etcM4m04xaa0=";
};
patches = [
./suid-wrapper-path.patch
# Pull support for localization on non-default --prefix:
# https://github.com/NixOS/nixpkgs/issues/249010
# https://github.com/linux-pam/linux-pam/pull/604
(fetchpatch {
name = "bind-locales.patch";
url = "https://github.com/linux-pam/linux-pam/commit/77bd338125cde583ecdfb9fd69619bcd2baf15c2.patch";
hash = "sha256-tlc9RcLZpEH315NFD4sdN9yOco8qhC6+bszl4OHm+AI=";
})
];
# Case-insensitivity workaround for https://github.com/linux-pam/linux-pam/issues/569
@ -35,8 +26,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "doc" "man" /* "modules" */ ];
depsBuildBuild = [ buildPackages.stdenv.cc ];
# autoreconfHook269 is needed for `suid-wrapper-path.patch` and
# `bind-locales.patch` above.
# autoreconfHook269 is needed for `suid-wrapper-path.patch` above.
# pkg-config-unwrapped is needed for `AC_CHECK_LIB` and `AC_SEARCH_LIBS`
nativeBuildInputs = [ flex autoreconfHook269 pkg-config-unwrapped ]
++ lib.optional stdenv.buildPlatform.isDarwin gettext;