nixpkgs/pkgs/os-specific/linux/pam_mount/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.3 KiB
Nix
Raw Normal View History

2022-07-13 17:51:52 +00:00
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, libtool, pam, libHX, libxml2, pcre2, perl, openssl, cryptsetup, util-linux }:
stdenv.mkDerivation rec {
2020-11-05 14:02:27 +00:00
pname = "pam_mount";
2022-07-13 17:51:52 +00:00
version = "2.19";
src = fetchurl {
2020-12-04 18:16:56 +00:00
url = "mirror://sourceforge/pam-mount/pam_mount/${pname}-${version}.tar.xz";
2022-07-13 17:51:52 +00:00
sha256 = "02m6w04xhgv2yx69yxph8giw0sp39s9lvvlffslyna46fnr64qvb";
};
2020-11-05 14:02:27 +00:00
patches = [
./insert_utillinux_path_hooks.patch
];
2020-11-05 14:02:27 +00:00
postPatch = ''
substituteInPlace src/mtcrypt.c \
2020-11-24 15:29:28 +00:00
--replace @@NIX_UTILLINUX@@ ${util-linux}/bin
2020-11-05 14:02:27 +00:00
'';
2015-07-04 14:30:24 +00:00
nativeBuildInputs = [
autoreconfHook
libtool
perl
pkg-config
];
buildInputs = [
cryptsetup
libHX
libxml2
openssl
pam
pcre2
util-linux
];
2020-11-05 14:02:27 +00:00
enableParallelBuilding = true;
configureFlags = [
"--prefix=${placeholder "out"}"
"--localstatedir=${placeholder "out"}/var"
"--sbindir=${placeholder "out"}/bin"
"--sysconfdir=${placeholder "out"}/etc"
"--with-slibdir=${placeholder "out"}/lib"
];
postInstall = ''
2020-11-05 14:02:27 +00:00
rm -r $out/var
'';
meta = with lib; {
description = "PAM module to mount volumes for a user session";
2020-11-05 14:02:27 +00:00
homepage = "https://pam-mount.sourceforge.net/";
2018-08-30 19:42:32 +00:00
license = with licenses; [ gpl2 gpl3 lgpl21 lgpl3 ];
2022-07-13 17:51:52 +00:00
maintainers = with maintainers; [ netali ];
2018-08-30 19:42:32 +00:00
platforms = platforms.linux;
};
}