9 stdenv.mkDerivation rec {
14 url = "http://deb.debian.org/debian/pool/main/p/pam-tmpdir/pam-tmpdir_${version}.tar.gz";
15 hash = "sha256-MXa1CY6alD83E/Q+MJmsv8NaImWd0pPJKZd/7nbe4J8=";
19 substituteInPlace pam_tmpdir.c \
20 --replace /sbin/pam-tmpdir-helper $out/sbin/pam-tmpdir-helper
22 # chmod/chown fails on files in /nix/store
23 sed -i -E -e '/^\s*(chmod|chown)/d' Makefile.{am,in}
25 # the symlinks in m4 assume FHS
29 nativeBuildInputs = [ autoreconfHook ];
31 buildInputs = [ pam ];
33 enableParallelBuilding = true;
36 homepage = "https://tracker.debian.org/pkg/pam-tmpdir";
37 description = "PAM module for creating safe per-user temporary directories";
38 mainProgram = "pam-tmpdir-helper";
39 license = licenses.gpl2Only;
40 maintainers = with maintainers; [ peterhoeg ];
41 platforms = platforms.linux;