2014-09-15 10:55:23 +01:00
|
|
|
{ stdenv, fetchurl, autoconf, automake, pkgconfig, libtool, pam, libHX, utillinux, libxml2, pcre, perl, openssl, cryptsetup }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-07-02 15:41:22 +01:00
|
|
|
name = "pam_mount-2.15";
|
2014-09-15 10:55:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-07-02 15:41:22 +01:00
|
|
|
url = "mirror://sourceforge/pam-mount/pam_mount/2.15/${name}.tar.xz";
|
|
|
|
sha256 = "091aq5zyc60wh21m1ryanjwknwxlaj9nvlswn5vjrmcdir5gnkm5";
|
2014-09-15 10:55:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ autoconf automake pkgconfig libtool pam libHX utillinux libxml2 pcre perl openssl cryptsetup ];
|
|
|
|
|
|
|
|
preConfigure = "sh autogen.sh --prefix=$out";
|
|
|
|
|
|
|
|
makeFlags = "DESTDIR=$(out)";
|
|
|
|
|
|
|
|
# Probably a hack, but using DESTDIR and PREFIX makes everything work!
|
|
|
|
postInstall = ''
|
|
|
|
cp -r $out/$out/* $out
|
|
|
|
rm -r $out/nix
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://pam-mount.sourceforge.net/;
|
2014-09-15 11:30:19 +01:00
|
|
|
description = "PAM module to mount volumes for a user session";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.tstrobel ];
|
2014-09-15 10:55:23 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|