Files
nixpkgs/pkgs/by-name/pa/pam_mount/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

80 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchurl,
autoreconfHook,
pkg-config,
libtool,
pam,
libHX,
libxml2,
pcre2,
perl,
openssl,
cryptsetup,
util-linux,
}:
stdenv.mkDerivation rec {
pname = "pam_mount";
version = "2.20";
src = fetchurl {
url = "https://inai.de/files/pam_mount/${pname}-${version}.tar.xz";
hash = "sha256-VCYgekhWgPjhdkukBbs4w5pODIMGvIJxkQ8bgZozbO0=";
};
patches = [
./insert_utillinux_path_hooks.patch
];
postPatch = ''
substituteInPlace src/mtcrypt.c \
--replace @@NIX_UTILLINUX@@ ${util-linux}/bin
'';
nativeBuildInputs = [
autoreconfHook
libtool
perl
pkg-config
];
buildInputs = [
cryptsetup
libHX
libxml2
openssl
pam
pcre2
util-linux
];
enableParallelBuilding = true;
configureFlags = [
"--prefix=${placeholder "out"}"
"--localstatedir=${placeholder "out"}/var"
"--sbindir=${placeholder "out"}/bin"
"--sysconfdir=${placeholder "out"}/etc"
"--with-slibdir=${placeholder "out"}/lib"
];
postInstall = ''
rm -r $out/var
'';
meta = with lib; {
description = "PAM module to mount volumes for a user session";
homepage = "https://pam-mount.sourceforge.net/";
license = with licenses; [
gpl2Plus
gpl3
lgpl21
lgpl3
];
maintainers = with maintainers; [ netali ];
platforms = platforms.linux;
};
}